Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_possible_variable_type), | intent(inout) | :: | me |
Possible variables |
||
character(len=*), | intent(in) | :: | varName |
variable name |
||
integer, | intent(in) | :: | nComponents |
number of components |
||
integer, | intent(out), | optional | :: | pos |
subroutine append_possible_variable( me, varName, nComponents, pos ) !--------------------------------------------------------------------------- !> Possible variables type(tem_possible_variable_type), intent(inout) :: me !> variable name character(len=*), intent(in) :: varName !> number of components integer, intent(in) :: nComponents integer, intent(out), optional :: pos !--------------------------------------------------------------------------- integer :: internal_pos !--------------------------------------------------------------------------- call append( me = me%varName, & & val = trim(varName), & & pos = internal_pos ) call append( me = me%nComponents, & & val = nComponents ) if( present( pos ) ) pos = internal_pos end subroutine append_possible_variable