1 ! ****************************************************************
3 ! tag2num - convert equation tags to kpp reaction number
5 ! id - string with the equation tag
7 ! ****************************************************************
9 ELEMENTAL
INTEGER FUNCTION tag2num ( id
)
11 USE KPP_ROOT_Monitor
, ONLY
: EQN_TAGS
13 CHARACTER(LEN
=*), INTENT(IN
) :: id
16 tag2num
= 0 ! mz_rs_20050115
17 DO i
= 1, SIZE(EQN_TAGS
)
18 IF (TRIM(EQN_TAGS(i
)) == TRIM(id
)) THEN
19 tag2num
= i
! mz_rs_20050115
26 ! End of tag2num function
27 ! ****************************************************************