Rev | Line | |
---|
[2320] | 1 | |
---|
| 2 | ! $Id: $ |
---|
| 3 | |
---|
| 4 | MODULE infotrac_phy |
---|
| 5 | |
---|
[4244] | 6 | USE strings_mod, ONLY: maxlen |
---|
[4240] | 7 | INTEGER, SAVE :: nqtot !--- Tracers nb in dynamics (incl. higher moments + H2O) |
---|
| 8 | CHARACTER(LEN=maxlen), SAVE :: type_trac !--- Keyword for tracers type |
---|
| 9 | CHARACTER(LEN=maxlen), SAVE, ALLOCATABLE :: types_trac(:) !--- Parsed version (one or several components name(s)) |
---|
| 10 | !$OMP THREADPRIVATE(nqtot, type_trac, types_trac) |
---|
[2320] | 11 | |
---|
| 12 | CONTAINS |
---|
| 13 | |
---|
[4240] | 14 | SUBROUTINE init_infotrac_phy(nqtot_, type_trac_) |
---|
[4244] | 15 | USE strings_mod, ONLY: strParse |
---|
[4240] | 16 | IMPLICIT NONE |
---|
| 17 | INTEGER, INTENT(IN) :: nqtot_ |
---|
| 18 | CHARACTER(LEN=*), INTENT(IN) :: type_trac_ |
---|
[4244] | 19 | CHARACTER(LEN=maxlen) :: modname='init_infotrac_phy' |
---|
[2320] | 20 | |
---|
[4240] | 21 | nqtot = nqtot_ |
---|
| 22 | IF(strParse(type_trac, '|', types_trac)) CALL abort_physic(modname,'can''t parse "type_trac = '//TRIM(type_trac)//'"',1) |
---|
| 23 | type_trac = type_trac_ |
---|
| 24 | |
---|
[2320] | 25 | END SUBROUTINE init_infotrac_phy |
---|
| 26 | |
---|
| 27 | END MODULE infotrac_phy |
---|
Note: See
TracBrowser
for help on using the repository browser.