Changeset 5001 for LMDZ6/trunk/libf/dyn3d_common
- Timestamp:
- Jul 1, 2024, 11:25:05 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d_common/infotrac.F90
r4984 r5001 5 5 USE strings_mod, ONLY: msg, fmsg, maxlen, cat, dispTable, int2str, bool2str, strStack, strParse 6 6 USE readTracFiles_mod, ONLY: trac_type, readTracersFiles, tracers, setGeneration, itZonIso, nzone, tran0, isoZone, & 7 delPhase, niso, getKey, isot_type, readIsotopesFile,isotope, maxTableWidth, iqIsoPha, nphas, ixIso, isoPhas, &8 addPhase, iH2O, addKey, isoSelect, testTracersFiles, isoKeys, indexUpdate, isoCheck, nbIso, ntiso, isoName7 delPhase, niso, getKey, isot_type, processIsotopes, isotope, maxTableWidth, iqIsoPha, nphas, ixIso, isoPhas, & 8 addPhase, iH2O, addKey, isoSelect, testTracersFiles, isoKeys, indexUpdate, iqWIsoPha, nbIso, ntiso, isoName, isoCheck 9 9 IMPLICIT NONE 10 10 … … 225 225 ttp = type_trac; IF(fType /= 1) ttp = texp 226 226 227 IF(readTracersFiles(ttp, type_trac == 'repr'))CALL abort_gcm(modname, 'problem with tracers file(s)',1)227 IF(readTracersFiles(ttp, lRepr=type_trac=='repr')) CALL abort_gcm(modname, 'problem with tracers file(s)',1) 228 228 !--------------------------------------------------------------------------------------------------------------------------- 229 229 IF(fType == 0) CALL abort_gcm(modname, 'Missing tracers file: "traceur.def", "tracer.def" or "tracer_<keyword>.def file.',1) … … 348 348 IF(nm == 0) CYCLE !--- No higher moments 349 349 ttr(jq+1:jq+nm) = t1 350 ttr(jq+1:jq+nm)%name = [ (TRIM(t1%name) //'-'//TRIM(suff(im)), im=1, nm) ]351 ttr(jq+1:jq+nm)%parent = [ (TRIM(t1%parent) //'-'//TRIM(suff(im)), im=1, nm) ]352 ttr(jq+1:jq+nm)%longName = [ (TRIM(t1%longName)//'-'//TRIM(suff(im)), im=1, nm) ]353 ttr(jq+1:jq+nm)%iadv = [ (-iad, im=1, nm) ]354 ttr(jq+1:jq+nm)%isAdvected = [ (.FALSE., im=1, nm) ]350 ttr(jq+1:jq+nm)%name = [ (TRIM(t1%name) //'-'//TRIM(suff(im)), im=1, nm) ] 351 ttr(jq+1:jq+nm)%parent = [ (TRIM(t1%parent) //'-'//TRIM(suff(im)), im=1, nm) ] 352 ttr(jq+1:jq+nm)%longName = [ (TRIM(t1%longName)//'-'//TRIM(suff(im)), im=1, nm) ] 353 ttr(jq+1:jq+nm)%iadv = [ (-iad, im=1, nm) ] 354 ttr(jq+1:jq+nm)%isAdvected = [ (.FALSE., im=1, nm) ] 355 355 jq = jq + nm 356 356 END DO … … 359 359 360 360 !--- SET FIELDS %iqParent, %nqChildren, %iGeneration, %iqDescen, %nqDescen 361 CALL indexUpdate(tracers)361 IF(indexUpdate(tracers)) CALL abort_gcm(modname, 'problem with tracers indices update', 1) 362 362 363 363 !=== TEST ADVECTION SCHEME … … 384 384 !=== READ PHYSICAL PARAMETERS FOR ISOTOPES ; DONE HERE BECAUSE dynetat0 AND iniacademic NEED "tnat" AND "alpha_ideal" 385 385 niso = 0; nzone = 0; nphas = nqo; ntiso = 0; isoCheck = .FALSE. 386 IF( readIsotopesFile()) CALL abort_gcm(modname, 'Problem when reading isotopes parameters', 1)386 IF(processIsotopes()) CALL abort_gcm(modname, 'problem when processing isotopes parameters', 1) 387 387 388 388 !--- Convection / boundary layer activation for all tracers … … 393 393 nqtottr = nqtot - COUNT(delPhase(tracers%gen0Name) == 'H2O' .AND. tracers%component == 'lmdz') 394 394 IF(COUNT(tracers%iso_iName == 0) - COUNT(delPhase(tracers%name) == 'H2O' .AND. tracers%component == 'lmdz') /= nqtottr) & 395 CALL abort_gcm(modname, 'p b dans le calcul denqtottr', 1)395 CALL abort_gcm(modname, 'problem with the computation of nqtottr', 1) 396 396 397 397 !=== DISPLAY THE RESULTS … … 408 408 t => tracers 409 409 CALL msg('Information stored in infotrac :', modname) 410 IF(dispTable('isssssssssiiiiiiiii', & 411 ['iq ', 'name ', 'lName ', 'gen0N ', 'parent', 'type ', 'phase ', 'compon', 'isPhy ', 'isAdv ',&412 'iadv ', 'iGen ', 'iqPar ', 'nqDes ', 'nqChld', 'iGroup', 'iName ', 'iZone ', 'iPhase'],&410 411 IF(dispTable('isssssssssiiiiiiiii', ['iq ', 'name', 'lNam', 'g0Nm', 'prnt', 'type', 'phas', 'comp', & 412 'isPh', 'isAd', 'iadv', 'iGen', 'iqPr', 'nqDe', 'nqCh', 'iGrp', 'iNam', 'iZon', 'iPha'], & 413 413 cat(t%name, t%longName, t%gen0Name, t%parent, t%type, t%phase, t%component, bool2str(t%isInPhysics), & 414 414 bool2str(t%isAdvected)), &
Note: See TracChangeset
for help on using the changeset viewer.