| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=2), | intent(in) | :: | var |
selection string: which variable to evaluate |
||
| integer, | intent(out) | :: | m_max |
maximum number of poloidal, toroidal modes |
||
| integer, | intent(out) | :: | n_max |
maximum number of poloidal, toroidal modes |
SUBROUTINE get_mn_max(var, m_max, n_max) ! INPUT/OUTPUT VARIABLES ------------------------------------------------------------------------------------------------------! CHARACTER(LEN=2), INTENT(IN) :: var !! selection string: which variable to evaluate INTEGER, INTENT(OUT) :: m_max, n_max !! maximum number of poloidal, toroidal modes ! LOCAL VARIABLES -------------------------------------------------------------------------------------------------------------! CLASS(t_base), POINTER :: base !! pointer to the base object (X1, X2, LA) ! CODE ------------------------------------------------------------------------------------------------------------------------! CALL select_base(var, base) m_max = base%f%mn_max(1) n_max = base%f%mn_max(2) END SUBROUTINE get_mn_max