Changeset 3986 for LMDZ6/branches
- Timestamp:
- Sep 24, 2021, 6:03:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ-tracers/libf/dyn3d_common/infotrac.F90
r3985 r3986 34 34 !=== FOR BOTH TRACERS AND ISOTOPES 35 35 PUBLIC :: getKey !--- Get a key from "tracers" or "isotope" 36 37 !=== FOR STRATOSPHERIC AEROSOLS38 #ifdef CPP_StratAer39 PUBLIC :: nbtr_bin, nbtr_sulgas, id_OCS_strat, id_H2SO4_strat, id_SO2_strat, id_BIN01_strat, id_TEST_strat40 #endif41 36 42 37 INTERFACE isoSelect; MODULE PROCEDURE isoSelectByIndex, isoSelectByName; END INTERFACE isoSelect … … 139 134 CHARACTER(LEN=8), SAVE, ALLOCATABLE :: solsym(:) !--- Names from INCA (nbtr) 140 135 141 #ifdef CPP_StratAer142 !=== SPECIFIC TO STRATOSPHERIC AEROSOLS (CK/OB)143 INTEGER, SAVE :: nbtr_bin, nbtr_sulgas, id_OCS_strat, id_H2SO4_strat, id_SO2_strat, id_BIN01_strat, id_TEST_strat144 #endif145 146 136 CONTAINS 147 137 … … 179 169 CHARACTER(LEN=2) :: suff(9) !--- Suffixes for schemes of order 3 or 4 (Prather) 180 170 CHARACTER(LEN=3) :: descrq(30) !--- Advection scheme description tags 181 CHARACTER(LEN=256) :: oldH2O(3) !--- Old water name for the three phases 182 CHARACTER(LEN=256) :: newH2O !--- New water name 171 CHARACTER(LEN=256) :: oldH2O, newH2O !--- Old and new water names 183 172 CHARACTER(LEN=256) :: msg1, msg2 !--- Strings for messages 184 173 CHARACTER(LEN=256), ALLOCATABLE :: str(:) !--- Temporary storage … … 200 189 descrq(10:20) = ['VL1','VLP','FH1','FH2','VLH',' ','PPM','PPS','PPP',' ','SLP'] 201 190 descrq(30) = 'PRA' 202 oldH2O = ['H2Ov','H2Ol','H2Oi']203 204 ! lerr = reduceExpr('1.0+-470.0/1000.',msg1)205 !print*,msg1206 !stop207 191 208 192 !--- MESSAGE ABOUT THE CHOSEN CONFIGURATION … … 333 317 !------------------------------------------------------------------------------------------------------------------------ 334 318 nqo = 0 335 DO ip = 1, SIZE(oldH2O)336 ix = strIdx(tracers(:)%name,oldH2O(ip)) !--- Old name of water in a specific phase (ix/=0)319 DO ip = 1, LEN_TRIM(old_phases) 320 oldH2O = 'H2O'//old_phases(ip:ip) !--- Old name of water 337 321 newH2O = 'H2O'//phases_sep//known_phases(ip:ip) !--- Corresponding new name 322 ix = strIdx(tracers(:)%name,oldH2O) !--- Index of water in phase ip 338 323 IF(ix == 0) ix = strIdx(tracers(:)%name,newH2O) !--- New name in an old format file (to be avoided...) 339 324 IF(ix == 0) CYCLE 340 325 nqo = nqo+1; tracers(ix)%name = newH2O !--- One more water phase ; replace old name with one 341 tracers(strFind(tracers(:)%nam1,oldH2O (ip)))%nam1 = newH2O342 tracers(strFind(tracers(:)%prnt,oldH2O (ip)))%prnt = newH2O326 tracers(strFind(tracers(:)%nam1,oldH2O))%nam1 = newH2O 327 tracers(strFind(tracers(:)%prnt,oldH2O))%prnt = newH2O 343 328 END DO 344 329 nqtrue = SIZE(tracers,DIM=1)
Note: See TracChangeset
for help on using the changeset viewer.