allocate the type fBase
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | mn_max_in(2) |
maximum mode in m and n |
||
| integer, | intent(in) | :: | mn_nyq_in(2) |
number of integration points |
||
| integer, | intent(in) | :: | nfp_in |
number of field periods |
||
| character(len=8), | intent(in) | :: | sin_cos_in |
can be either only sine: " sin" only cosine: " cos" or full: "sin_cos" |
||
| logical, | intent(in) | :: | exclude_mn_zero_in |
=true: exclude m=n=0 mode in the basis (only important if cos is in basis) |
self
FUNCTION fBase_new(mn_max_in,mn_nyq_in,nfp_in,sin_cos_in,exclude_mn_zero_in) RESULT(sf) ! MODULES IMPLICIT NONE ! INPUT VARIABLES -------------------------! INTEGER , INTENT(IN ) :: mn_max_in(2) !! maximum mode in m and n INTEGER , INTENT(IN ) :: mn_nyq_in(2) !! number of integration points INTEGER , INTENT(IN ) :: nfp_in !! number of field periods CHARACTER(LEN=8),INTENT(IN ) :: sin_cos_in !! can be either only sine: " _sin_" only cosine: " _cos_" or full: "_sin_cos_" LOGICAL ,INTENT(IN ) :: exclude_mn_zero_in !! =true: exclude m=n=0 mode in the basis (only important if cos is in basis) ! OUTPUT VARIABLES -------------------------! TYPE(t_fBase) :: sf !! self ! CODE --------------------------------------------------------------------------------------------------------------------------! __PERFON("fbase_new") CALL sf%init(mn_max_in,mn_nyq_in,nfp_in,sin_cos_in,exclude_mn_zero_in) __PERFOFF("fbase_new") END FUNCTION fBase_new