Changeset 5251 for LMDZ6/trunk/libf/dyn3d_common
- Timestamp:
- Oct 22, 2024, 12:31:08 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d_common/infotrac.F90
r5237 r5251 121 121 USE CHEM_REP, ONLY: Init_chem_rep_trac 122 122 #endif 123 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA 123 124 IMPLICIT NONE 124 125 !============================================================================================================================== … … 147 148 ! Local variables 148 149 INTEGER, ALLOCATABLE :: hadv(:), vadv(:) !--- Horizontal/vertical transport scheme number 149 #ifdef INCA150 150 INTEGER, ALLOCATABLE :: had (:), hadv_inca(:), conv_flg_inca(:), &!--- Variables specific to INCA 151 151 vad (:), vadv_inca(:), pbl_flg_inca(:) 152 152 CHARACTER(LEN=8), ALLOCATABLE :: solsym_inca(:) !--- Tracers names for INCA 153 153 INTEGER :: nqINCA 154 #endif155 154 CHARACTER(LEN=2) :: suff(9) !--- Suffixes for schemes of order 3 or 4 (Prather) 156 155 CHARACTER(LEN=3) :: descrq(30) !--- Advection scheme description tags … … 199 198 SELECT CASE(type_trac) 200 199 CASE('inca', 'inco') 201 #ifndef INCA 200 IF (.NOT. CPPKEY_INCA) THEN 202 201 CALL abort_gcm(modname, 'You must add cpp key INCA and compile with INCA code', 1) 203 #endif 202 END IF 204 203 CASE('repr') 205 204 #ifndef REPROBUS … … 232 231 IF(fType == 1 .AND. ANY(['inca', 'inco'] == type_trac)) THEN !=== FOUND OLD STYLE INCA "traceur.def" 233 232 !--------------------------------------------------------------------------------------------------------------------------- 234 #ifdef INCA 233 IF (CPPKEY_INCA) THEN 235 234 nqo = SIZE(tracers) - nqCO2 236 235 CALL Init_chem_inca_trac(nqINCA) !--- Get nqINCA from INCA … … 263 262 IF(setGeneration(tracers)) CALL abort_gcm(modname,'See above',1) !- SET FIELDS %iGeneration, %gen0Name 264 263 DEALLOCATE(had, hadv_inca, vad, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca) 265 #endif 264 END IF 266 265 !--------------------------------------------------------------------------------------------------------------------------- 267 266 ELSE !=== OTHER CASES (OLD OR NEW FORMAT, NO INCA MODULE) … … 271 270 nbtr = nqtrue-COUNT(tracers(:)%component == 'lmdz' .AND. delPhase(tracers(:)%gen0Name) == 'H2O') !--- Passed to phytrac 272 271 nqCO2 = COUNT( [type_trac == 'inco', type_trac == 'co2i'] ) 273 #ifdef INCA 272 IF (CPPKEY_INCA) THEN 274 273 nqINCA = COUNT(tracers(:)%component == 'inca') 275 #endif 274 END IF 276 275 IF(getKey('hadv', hadv, ky=tracers(:)%keys)) CALL abort_gcm(modname, 'missing key "hadv"', 1) 277 276 IF(getKey('vadv', vadv, ky=tracers(:)%keys)) CALL abort_gcm(modname, 'missing key "vadv"', 1) … … 401 400 CALL msg('niso = '//TRIM(int2str(niso)), modname) 402 401 CALL msg('ntiso = '//TRIM(int2str(ntiso)), modname) 403 #ifdef INCA 402 IF (CPPKEY_INCA) THEN 404 403 CALL msg('nqCO2 = '//TRIM(int2str(nqCO2)), modname) 405 404 CALL msg('nqINCA = '//TRIM(int2str(nqINCA)), modname) 406 #endif 405 END IF 407 406 t => tracers 408 407 CALL msg('Information stored in '//TRIM(modname)//': ', modname)
Note: See TracChangeset
for help on using the changeset viewer.