Changeset 4240 for LMDZ6/trunk/libf
- Timestamp:
- Sep 9, 2022, 3:44:13 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phydev/infotrac_phy.F90
r2320 r4240 4 4 MODULE infotrac_phy 5 5 6 ! Information on tracers for physics; 7 ! nqtot : total number of tracers and higher order of moment, water vapor and liquid included 8 INTEGER, SAVE :: nqtot 9 !$OMP THREADPRIVATE(nqtot) 10 11 CHARACTER(len=4),SAVE :: type_trac 12 !$OMP THREADPRIVATE(type_trac) 6 INTEGER, SAVE :: nqtot !--- Tracers nb in dynamics (incl. higher moments + H2O) 7 CHARACTER(LEN=maxlen), SAVE :: type_trac !--- Keyword for tracers type 8 CHARACTER(LEN=maxlen), SAVE, ALLOCATABLE :: types_trac(:) !--- Parsed version (one or several components name(s)) 9 !$OMP THREADPRIVATE(nqtot, type_trac, types_trac) 13 10 14 11 CONTAINS 15 12 16 SUBROUTINE init_infotrac_phy(nqtot_,type_trac_)17 ! transfer information on tracers from dynamics to physics18 IMPLICIT NONE19 INTEGER,INTENT(IN) :: nqtot_20 CHARACTER(len=4),INTENT(IN) :: type_trac_13 SUBROUTINE init_infotrac_phy(nqtot_, type_trac_) 14 USE strings_mod, ONLY: maxlen, strParse 15 IMPLICIT NONE 16 INTEGER, INTENT(IN) :: nqtot_ 17 CHARACTER(LEN=*), INTENT(IN) :: type_trac_ 21 18 22 nqtot=nqtot_ 23 type_trac=type_trac_ 24 19 nqtot = nqtot_ 20 IF(strParse(type_trac, '|', types_trac)) CALL abort_physic(modname,'can''t parse "type_trac = '//TRIM(type_trac)//'"',1) 21 type_trac = type_trac_ 22 25 23 END SUBROUTINE init_infotrac_phy 26 24
Note: See TracChangeset
for help on using the changeset viewer.