Changeset 3957 for LMDZ6/branches/LMDZ-tracers/libf/dyn3d_common
- Timestamp:
- Jul 11, 2021, 11:39:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ-tracers/libf/dyn3d_common/infotrac.F90
r3891 r3957 1 1 MODULE infotrac 2 2 3 USE strings_mod, ONLY: msg, find, strIdx, strFind, strHead, dispTable, testFile, cat, get_in, &3 USE strings_mod, ONLY: msg, find, strIdx, strFind, strHead, dispTable, testFile, cat, get_in, & 4 4 fmsg, test, int2str, strParse, strTail, strReduce, strStack, modname 5 USE readTracFiles_mod, ONLY: readTracersFiles, getKey_init, nphases, delPhase, aliasTracer, &6 5 USE readTracFiles_mod, ONLY: readTracersFiles, getKey_init, nphases, delPhase, old_phases, aliasTracer, & 6 phases_sep, tran0, readIsotopesFile, getKey, known_phases, addPhase, indexUpdate, initIsotopes 7 7 USE trac_types_mod, ONLY: tra, iso, kys 8 8 … … 45 45 ! |--------------------+----------------------+-----------------+---------------+----------------------------| 46 46 ! | water in different | water tagging | water isotopes | other tracers | additional tracers moments | 47 ! | phases: H2O -[gls] | isotopes | | | for higher order schemes |47 ! | phases: H2O_[gls] | isotopes | | | for higher order schemes | 48 48 ! |--------------------+----------------------+-----------------+---------------+----------------------------| 49 49 ! | | | | | | … … 184 184 CHARACTER(LEN=2) :: suff(9) !--- Suffixes for schemes of order 3 or 4 (Prather) 185 185 CHARACTER(LEN=3) :: descrq(30) !--- Advection scheme description tags 186 CHARACTER(LEN= 4):: oldH2O(3) !--- Old water name for the three phases186 CHARACTER(LEN=256) :: oldH2O(3) !--- Old water name for the three phases 187 187 CHARACTER(LEN=256) :: newH2O !--- New water name 188 188 CHARACTER(LEN=256) :: msg1, msg2 !--- Strings for messages … … 283 283 IF(planet_type=='earth') THEN !--- Default for Earth 284 284 nqo = 2; nbtr = 2 285 tracers(:)%name = ['H2O -g','H2O-l','RN ','PB ']286 tracers(:)%prnt = [tran0 ,tran0 ,tran0 ,tran0]287 tracers(:)%igen = [1 ,1 ,1 ,1]288 hadv = [14 ,10 ,10 ,10]289 vadv = [14 ,10 ,10 ,10]285 tracers(:)%name = ['H2O'//phases_sep//'g', 'H2O'//phases_sep//'l', 'RN ', 'PB '] 286 tracers(:)%prnt = [tran0, tran0, tran0, tran0] 287 tracers(:)%igen = [1 , 1 , 1 , 1 ] 288 hadv = [14 , 10 , 10 , 10 ] 289 vadv = [14 , 10 , 10 , 10 ] 290 290 ELSE !--- Default for other planets 291 291 nqo = 0; nbtr = 1 … … 329 329 DO ip = 1, SIZE(oldH2O) 330 330 ix = strIdx(tracers(:)%name,oldH2O(ip)) !--- Old name of water in a specific phase (ix/=0) 331 newH2O = 'H2O'//phases_sep//known_phases(ip:ip) !--- Corresponding new name 332 IF(ix == 0) ix = strIdx(tracers(:)%name,newH2O) !--- New name in an old format file (to be avoided...) 331 333 IF(ix == 0) CYCLE 332 newH2O = 'H2O-'//known_phases(ip:ip) !--- Corresponding new name333 334 nqo = nqo+1; tracers(ix)%name = newH2O !--- One more water phase ; replace old name with one 334 335 tracers(strFind(tracers(:)%nam1,oldH2O(ip)))%nam1 = newH2O … … 341 342 CASE DEFAULT !=== FOUND NEW STYLE TRACERS CONFIG FILE(S) 342 343 !-------------------------------------------------------------------------------------------------------------------------- 343 nqo = 2; IF(ANY(tracers(:)%name == 'H2O -s')) nqo=3344 nqo = 2; IF(ANY(tracers(:)%name == 'H2O'//phases_sep//'s')) nqo=3 344 345 nqtrue = SIZE(tracers, DIM=1) 345 346 nbtr = nqtrue - nqo … … 353 354 IF(.NOT.ALLOCATED(conv_flg)) conv_flg = [(1, it=1, nbtr)] 354 355 IF(.NOT.ALLOCATED( pbl_flg)) pbl_flg = [(1, it=1, nbtr)] 356 !print*,'nqo, nbtr = ',nqo,nbtr 357 !stop 355 358 356 359 #ifdef CPP_StratAer … … 466 469 467 470 !--- iadv = 14 IS ONLY VALID FOR WATER VAPOUR 468 IF(fmsg(iad==14 .AND. t1%name(1:5)/='H2O -g', 'WARNING ! '//TRIM(msg1)//', found for "' &471 IF(fmsg(iad==14 .AND. t1%name(1:5)/='H2O'//phases_sep//'g', 'WARNING ! '//TRIM(msg1)//', found for "' & 469 472 //TRIM(t1%name)//'" but only valid for water vapour ! Setting iadv=10 for "'//TRIM(t1%name)//'".')) t1%iadv=10 470 473 END DO
Note: See TracChangeset
for help on using the changeset viewer.