| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=2), | intent(in) | :: | var |
selection string: which variable to evaluate |
||
| integer, | intent(out) | :: | modes |
total number of modes in basis (depends if only sin/cos or sin & cos are used) |
SUBROUTINE get_modes(var, modes) ! INPUT/OUTPUT VARIABLES ------------------------------------------------------------------------------------------------------! CHARACTER(LEN=2), INTENT(IN) :: var !! selection string: which variable to evaluate INTEGER, INTENT(OUT) :: modes !! total number of modes in basis (depends if only sin/cos or sin & cos are used) ! LOCAL VARIABLES -------------------------------------------------------------------------------------------------------------! CLASS(t_base), POINTER :: base !! pointer to the base object (X1, X2, LA) ! CODE ------------------------------------------------------------------------------------------------------------------------! CALL select_base(var, base) modes = base%f%modes END SUBROUTINE get_modes