Changeset 5091 for LMDZ6/branches/Amaury_dev/libf/dyn3d_common
- Timestamp:
- Jul 20, 2024, 11:17:09 PM (4 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/dyn3d_common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3d_common/infotrac.F90
r5082 r5091 117 117 USE CHEM_REP, ONLY: Init_chem_rep_trac 118 118 #endif 119 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA 119 120 IMPLICIT NONE 120 121 !============================================================================================================================== … … 143 144 ! Local variables 144 145 INTEGER, ALLOCATABLE :: hadv(:), vadv(:) !--- Horizontal/vertical transport scheme number 145 #ifdef INCA146 146 INTEGER, ALLOCATABLE :: had (:), hadv_inca(:), conv_flg_inca(:), &!--- Variables specific to INCA 147 147 vad (:), vadv_inca(:), pbl_flg_inca(:) 148 148 CHARACTER(LEN=8), ALLOCATABLE :: solsym_inca(:) !--- Tracers names for INCA 149 149 INTEGER :: nqINCA 150 #endif151 150 CHARACTER(LEN=2) :: suff(9) !--- Suffixes for schemes of order 3 or 4 (Prather) 152 151 CHARACTER(LEN=3) :: descrq(30) !--- Advection scheme description tags … … 197 196 SELECT CASE(type_trac) 198 197 CASE('inca', 'inco') 199 #ifndef INCA 198 IF (CPPKEY_INCA) THEN 200 199 CALL abort_gcm(modname, 'You must add cpp key INCA and compile with INCA code', 1) 201 #endif 200 END IF 202 201 CASE('repr') 203 202 #ifndef REPROBUS … … 229 228 IF(fType == 1 .AND. ANY(['inca','inco']==type_trac)) THEN !=== FOUND OLD STYLE INCA "traceur.def" 230 229 !--------------------------------------------------------------------------------------------------------------------------- 231 #ifdef INCA 230 IF (CPPKEY_INCA) THEN 232 231 nqo = SIZE(tracers) - nqCO2 233 232 CALL Init_chem_inca_trac(nqINCA) !--- Get nqINCA from INCA … … 260 259 IF(setGeneration(tracers)) CALL abort_gcm(modname,'See above',1) !- SET FIELDS %iGeneration, %gen0Name 261 260 DEALLOCATE(had, hadv_inca, vad, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca) 262 #endif 261 END IF 263 262 !--------------------------------------------------------------------------------------------------------------------------- 264 263 ELSE !=== OTHER CASES (OLD OR NEW FORMAT, NO INCA MODULE) … … 269 268 nbtr = nqtrue-COUNT(delPhase(tracers(:)%gen0Name) == 'H2O' & 270 269 .AND. tracers(:)%component == 'lmdz') !--- Number of tracers passed to phytrac 271 #ifdef INCA 270 IF (CPPKEY_INCA) THEN 272 271 nqINCA = COUNT(tracers(:)%component == 'inca') 273 #endif 272 END IF 274 273 lerr = getKey('hadv', hadv, ky=tracers(:)%keys) 275 274 lerr = getKey('vadv', vadv, ky=tracers(:)%keys) … … 400 399 CALL msg('niso = '//TRIM(int2str(niso)), modname) 401 400 CALL msg('ntiso = '//TRIM(int2str(ntiso)), modname) 402 #ifdef INCA 403 CALL msg('nqCO2 = '//TRIM(int2str(nqCO2)), modname)404 CALL msg('nqINCA = '//TRIM(int2str(nqINCA)), modname)405 #endif 401 IF (CPPKEY_INCA) THEN 402 CALL msg('nqCO2 = '//TRIM(int2str(nqCO2)), modname) 403 CALL msg('nqINCA = '//TRIM(int2str(nqINCA)), modname) 404 END IF 406 405 t => tracers 407 406 CALL msg('Information stored in infotrac :', modname) -
LMDZ6/branches/Amaury_dev/libf/dyn3d_common/inigeom.F
r5086 r5091 348 348 DO j = 1, jjp1 349 349 c 350 IF ( j . eq.1 ) THEN350 IF ( j == 1 ) THEN 351 351 c 352 352 yprm = yprimu1(j) … … 378 378 END IF 379 379 c 380 IF ( j . eq.jjp1 ) THEN380 IF ( j == jjp1 ) THEN 381 381 yprp = yprimu2(j-1) 382 382 rlatp = rlatu2 (j-1)
Note: See TracChangeset
for help on using the changeset viewer.