- Timestamp:
- Apr 6, 2023, 3:12:16 PM (20 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/infotrac_phy.F90
r4487 r4500 202 202 CASE('coag'); CALL msg(TRIM(msg1)//' tracers are treated for COAGULATION tests', modname) 203 203 CASE('lmdz'); CALL msg(TRIM(msg1)//' tracers are treated in LMDZ only', modname) 204 CASE DEFAULT; CALL abort_ gcm(modname,'type_trac='//TRIM(type_trac)//' not possible yet.',1)204 CASE DEFAULT; CALL abort_physic(modname,'type_trac='//TRIM(type_trac)//' not possible yet.',1) 205 205 END SELECT 206 206 … … 209 209 CASE('inca', 'inco') 210 210 #ifndef INCA 211 CALL abort_ gcm(modname, 'You must add cpp key INCA and compile with INCA code', 1)211 CALL abort_physic(modname, 'You must add cpp key INCA and compile with INCA code', 1) 212 212 #endif 213 213 CASE('repr') 214 214 #ifndef REPROBUS 215 CALL abort_ gcm(modname, 'You must add cpp key REPROBUS and compile with REPROBUS code', 1)215 CALL abort_physic(modname, 'You must add cpp key REPROBUS and compile with REPROBUS code', 1) 216 216 #endif 217 217 CASE('coag') 218 218 #ifndef CPP_StratAer 219 CALL abort_ gcm(modname, 'You must add cpp key StratAer and compile with StratAer code', 1)219 CALL abort_physic(modname, 'You must add cpp key StratAer and compile with StratAer code', 1) 220 220 #endif 221 221 END SELECT … … 234 234 235 235 !=== DETERMINE THE TYPE OF THE INPUT TRACERS DESCRIPTION FILE 236 IF(testTracersFiles(modname, texp, fType, lInit)) CALL abort_gcm(modname, 'problem with tracers file(s)',1) 236 IF(testTracersFiles(modname, texp, fType, lInit)) CALL abort_physic(modname, 'problem with tracers file(s)',1) 237 237 238 ttp = type_trac; IF(fType /= 1) ttp = texp 238 239 239 240 !############################################################################################################################## 240 241 IF(lInit) THEN 241 IF(readTracersFiles(ttp, type_trac == 'repr')) CALL abort_ gcm(modname, 'problem with tracers file(s)',1)242 IF(readTracersFiles(ttp, type_trac == 'repr')) CALL abort_physic(modname, 'problem with tracers file(s)',1) 242 243 ELSE 243 244 CALL msg('No tracers description file(s) reading needed: already done in the dynamics', modname) … … 246 247 247 248 !--------------------------------------------------------------------------------------------------------------------------- 248 IF(fType == 0) CALL abort_ gcm(modname, 'Missing tracers file: "traceur.def", "tracer.def" or "tracer_<keyword>.def file.',1)249 IF(fType == 0) CALL abort_physic(modname, 'Missing tracers file: "traceur.def", "tracer.def" or "tracer_<keyword>.def file.',1) 249 250 !--------------------------------------------------------------------------------------------------------------------------- 250 251 IF(fType == 1 .AND. ANY(['inca','inco']==type_trac) .AND. lInit) THEN !=== FOUND OLD STYLE INCA "traceur.def" … … 255 256 nbtr = nqINCA + nqCO2 !--- Number of tracers passed to phytrac 256 257 nqtrue = nbtr + nqo !--- Total number of "true" tracers 257 IF(ALL([2,3] /= nqo)) CALL abort_ gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)258 IF(ALL([2,3] /= nqo)) CALL abort_physic(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1) 258 259 ALLOCATE(hadv(nqtrue), hadv_inca(nqINCA), conv_flg_inca(nqINCA), solsym_inca(nqINCA)) 259 260 ALLOCATE(vadv(nqtrue), vadv_inca(nqINCA), pbl_flg_inca(nqINCA)) … … 279 280 CALL addKey('phase', t1%phase, t1%keys) 280 281 END DO 281 IF(setGeneration(tracers)) CALL abort_ gcm(modname,'See above',1) !- SET FIELDS %iGeneration, %gen0Name282 IF(setGeneration(tracers)) CALL abort_physic(modname,'See below',1) !- SET FIELDS %iGeneration, %gen0Name 282 283 DEALLOCATE(had, hadv_inca, vad, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca) 283 284 #endif … … 314 315 IF( hadv(iq)<20 .OR. (ANY(hadv(iq)==[20,30]) .AND. hadv(iq)==vadv(iq)) ) CYCLE 315 316 WRITE(msg1,'("The choice hadv=",i0,", vadv=",i0,a)')hadv(iq),vadv(iq),' for "'//TRIM(tracers(iq)%name)//'" is not available' 316 CALL abort_ gcm(modname, TRIM(msg1), 1)317 CALL abort_physic(modname, TRIM(msg1), 1) 317 318 END DO 318 319 nqtot = COUNT( hadv< 20 .AND. vadv< 20 ) & !--- No additional tracer … … 340 341 IF(hadv(iq)==10 .AND. vadv(iq)==16) iad = 11 341 342 WRITE(msg1,'("Bad choice of advection scheme for ",a,": hadv = ",i0,", vadv = ",i0)')TRIM(t1%name), hadv(iq), vadv(iq) 342 IF(iad == -1) CALL abort_ gcm(modname, msg1, 1)343 IF(iad == -1) CALL abort_physic(modname, msg1, 1) 343 344 344 345 !--- SET FIELDS %longName, %isAdvected, %isInPhysics … … 381 382 !=== READ PHYSICAL PARAMETERS FOR ISOTOPES 382 383 niso = 0; nzone = 0; nphas = nqo; ntiso = 0; isoCheck = .FALSE. 383 IF(readIsotopesFile()) CALL abort_ gcm(modname, 'Problem when reading isotopes parameters', 1)384 IF(readIsotopesFile()) CALL abort_physic(modname, 'Problem when reading isotopes parameters', 1) 384 385 385 386 !############################################################################################################################## … … 387 388 !############################################################################################################################## 388 389 !--- Convection / boundary layer activation for all tracers 389 ALLOCATE(conv_flg(nbtr)); conv_flg(1:nbtr) = 1390 ALLOCATE( pbl_flg(nbtr)); pbl_flg(1:nbtr) = 1390 IF (.NOT.ALLOCATED(conv_flg)) ALLOCATE(conv_flg(nbtr)); conv_flg(1:nbtr) = 1 391 IF (.NOT.ALLOCATED(pbl_flg)) ALLOCATE( pbl_flg(nbtr)); pbl_flg(1:nbtr) = 1 391 392 392 393 !--- Note: nqtottr can differ from nbtr when nmom/=0 393 394 nqtottr = nqtot - COUNT(delPhase(tracers%gen0Name) == 'H2O' .AND. tracers%component == 'lmdz') 394 395 IF(COUNT(tracers%iso_iName == 0) - COUNT(delPhase(tracers%name) == 'H2O' .AND. tracers%component == 'lmdz') /= nqtottr) & 395 CALL abort_ gcm(modname, 'pb dans le calcul de nqtottr', 1)396 CALL abort_physic(modname, 'pb dans le calcul de nqtottr', 1) 396 397 397 398 !=== DISPLAY THE RESULTS … … 414 415 cat([(iq, iq=1, nqtot)], t%iGeneration, t%iqParent, t%nqDescen, t%nqChildren, t%iso_iGroup, & 415 416 t%iso_iName, t%iso_iZone, t%iso_iPhase), nColMax=maxTableWidth, nHead=2, sub=modname)) & 416 CALL abort_ gcm(modname, "problem with the tracers table content", 1)417 CALL abort_physic(modname, "problem with the tracers table content", 1) 417 418 IF(niso > 0) THEN 418 419 CALL msg('Where, for isotopes family "'//TRIM(isotope%parent)//'":', modname) -
LMDZ6/trunk/libf/phylmd/tracinca_mod.F90
r4412 r4500 30 30 31 31 !--- COHERENCE TEST BETWEEN "type_trac" AND "config_inca" 32 IF(ANY(type_trac == ['inca','inco']) .AND. ALL(config_inca /= ['aero','aeNP','chem'])) CALL abort_ gcm('tracinca_init', &32 IF(ANY(type_trac == ['inca','inco']) .AND. ALL(config_inca /= ['aero','aeNP','chem'])) CALL abort_physic('tracinca_init', & 33 33 'INCA enabled, but unknown config_inca = "'//TRIM(config_inca)//'". Please modify "run.def"', 1) 34 34 35 35 !--- PROBLEM IF "config_inca" DIFFERS FROM "none" AND INCA HAS NOT BEEN ACTIVATED 36 IF(ALL(type_trac /= ['inca','inco']) .AND. config_inca /= 'none') CALL abort_ gcm('tracinca_init', &36 IF(ALL(type_trac /= ['inca','inco']) .AND. config_inca /= 'none') CALL abort_physic('tracinca_init', & 37 37 'INCA disabled, but config_inca = "'//TRIM(config_inca)//'" should be "none". Please modify "run.def"', 1) 38 38
Note: See TracChangeset
for help on using the changeset viewer.