allocate the type fBase
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(t_fBase), | intent(inout), | ALLOCATABLE | :: | sf |
self |
|
| 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) |
SUBROUTINE fBase_new( sf, mn_max_in,mn_nyq_in,nfp_in,sin_cos_in,exclude_mn_zero_in) ! 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), ALLOCATABLE,INTENT(INOUT) :: sf !! self !----------------------------------------------------------------------------------------------------------------------------------- ! LOCAL VARIABLES !=================================================================================================================================== ALLOCATE(sf) __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 SUBROUTINE fBase_new