Changeset 4170 for LMDZ6/trunk/libf/phylmdiso
- Timestamp:
- Jun 16, 2022, 8:16:59 PM (3 years ago)
- Location:
- LMDZ6/trunk/libf/phylmdiso
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmdiso/phyetat0.F90
r4089 r4170 31 31 USE geometry_mod, ONLY: longitude_deg, latitude_deg 32 32 USE iostart, ONLY: close_startphy, get_field, get_var, open_startphy 33 USE infotrac_phy, ONLY: nqtot, nbtr, type _trac, tracers33 USE infotrac_phy, ONLY: nqtot, nbtr, types_trac, tracers 34 34 USE traclmdz_mod, ONLY: traclmdz_from_restart 35 35 USE carbon_cycle_mod, ONLY: carbon_cycle_tr, carbon_cycle_cpl, co2_send … … 468 468 !=========================================== 469 469 470 IF (type_trac == 'lmdz') THEN 470 !--OB now this is for co2i - ThL: and therefore also for inco 471 IF (ANY(types_trac == 'co2i') .OR. ANY(types_trac == 'inco')) THEN 472 IF (carbon_cycle_cpl) THEN 473 ALLOCATE(co2_send(klon), stat=ierr) 474 IF (ierr /= 0) CALL abort_physic('phyetat0', 'pb allocation co2_send', 1) 475 found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm) 476 ENDIF 477 ELSE IF (ANY(types_trac == 'lmdz')) THEN 471 478 it = 0 472 479 DO iq = 1, nqtot … … 477 484 END DO 478 485 CALL traclmdz_from_restart(trs) 479 ENDIF480 481 !--OB now this is for co2i - ThL: and therefore also for inco482 IF (type_trac == 'co2i' .OR. type_trac == 'inco') THEN483 IF (carbon_cycle_cpl) THEN484 ALLOCATE(co2_send(klon), stat=ierr)485 IF (ierr /= 0) CALL abort_physic('phyetat0', 'pb allocation co2_send', 1)486 found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm)487 ENDIF488 486 ENDIF 489 487 -
LMDZ6/trunk/libf/phylmdiso/phyredem.F90
r4149 r4170 39 39 USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var 40 40 USE traclmdz_mod, ONLY : traclmdz_to_restart 41 USE infotrac_phy, ONLY: type _trac, nqtot, tracers, nbtr, niso41 USE infotrac_phy, ONLY: types_trac, nqtot, tracers, nbtr, niso 42 42 #ifdef ISO 43 43 #ifdef ISOVERIF … … 345 345 346 346 347 ! trs from traclmdz_mod 348 IF (type_trac == 'lmdz') THEN 349 CALL traclmdz_to_restart(trs) 350 it = 0 351 DO iq = 1, nqtot 352 IF(.NOT.(tracers(iq)%isAdvected .AND. tracers(iq)%isInPhysics)) CYCLE 353 it = it+1 354 CALL put_field(pass,"trs_"//tracers(iq)%name, "", trs(:, it)) 355 END DO 356 END IF 357 358 IF (type_trac == 'co2i' .OR. type_trac == 'inco') THEN 347 IF (ANY(types_trac == 'co2i') .OR. ANY(types_trac == 'inco')) THEN 359 348 IF (carbon_cycle_cpl) THEN 360 349 IF (.NOT. ALLOCATED(co2_send)) THEN … … 365 354 CALL put_field(pass,"co2_send", "co2_ppm for coupling", co2_send) 366 355 END IF 356 357 ! trs from traclmdz_mod 358 ELSE IF (ANY(types_trac == 'lmdz')) THEN 359 CALL traclmdz_to_restart(trs) 360 it = 0 361 DO iq = 1, nqtot 362 IF(.NOT.(tracers(iq)%isAdvected .AND. tracers(iq)%isInPhysics)) CYCLE 363 it = it+1 364 CALL put_field(pass,"trs_"//tracers(iq)%name, "", trs(:, it)) 365 END DO 367 366 END IF 368 367 -
LMDZ6/trunk/libf/phylmdiso/phys_output_mod.F90
r4149 r4170 35 35 USE iophy 36 36 USE dimphy 37 USE infotrac_phy, ONLY: nqtot, tracers, type_trac,niso, ntraciso=>ntiso37 USE infotrac_phy, ONLY: nqtot, tracers, niso, ntraciso=>ntiso 38 38 USE strings_mod, ONLY: maxlen 39 39 USE ioipsl -
LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90
r4143 r4170 39 39 USE ioipsl_getin_p_mod, ONLY : getin_p 40 40 USE indice_sol_mod 41 USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, type _trac, nqCO241 USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, types_trac, nqCO2 42 42 USE readTracFiles_mod, ONLY: addPhase 43 43 USE strings_mod, ONLY: strIdx, strStack, int2str … … 1539 1539 tau_overturning_th(:)=0. 1540 1540 1541 IF ( type_trac == 'inca' .OR. type_trac == 'inco') THEN1541 IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN 1542 1542 ! jg : initialisation jusqu'au ces variables sont dans restart 1543 1543 ccm(:,:,:) = 0. … … 2151 2151 !c ENDDO 2152 2152 ! 2153 IF ( type_trac == 'inca' .OR. type_trac == 'inco') THEN! ModThL2153 IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN ! ModThL 2154 2154 #ifdef INCA 2155 2155 CALL VTe(VTphysiq) … … 2200 2200 ENDIF 2201 2201 ! 2202 IF ( type_trac == 'repr') THEN2202 IF (ANY(types_trac == 'repr')) THEN 2203 2203 #ifdef REPROBUS 2204 2204 CALL chemini_rep( & … … 2316 2316 2317 2317 ! Update time and other variables in Reprobus 2318 IF ( type_trac == 'repr') THEN2318 IF (ANY(types_trac == 'repr')) THEN 2319 2319 #ifdef REPROBUS 2320 2320 CALL Init_chem_rep_xjour(jD_cur-jD_ref+day_ref) … … 3582 3582 ! 3583 3583 !>jyg 3584 IF ( type_trac == 'repr') THEN3584 IF (ANY(types_trac == 'repr')) THEN 3585 3585 nbtr_tmp=ntra 3586 3586 ELSE … … 5112 5112 ENDDO 5113 5113 5114 IF ( type_trac == 'inca' .OR. type_trac == 'inco') THEN! ModThL5114 IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN ! ModThL 5115 5115 #ifdef INCA 5116 5116 CALL VTe(VTphysiq) … … 5168 5168 #endif 5169 5169 ENDIF !type_trac = inca or inco 5170 IF ( type_trac == 'repr') THEN5170 IF (ANY(types_trac == 'repr')) THEN 5171 5171 #ifdef REPROBUS 5172 5172 !CALL chemtime_rep(itap+itau_phy-1, date0, dtime, itap) … … 6264 6264 ! 6265 6265 6266 IF ( type_trac=='repr') THEN6266 IF (ANY(types_trac=='repr')) THEN 6267 6267 !MM pas d'impact, car on recupere q_seri,tr_seri,t_seri via phys_local_var_mod 6268 6268 !MM dans Reprobus … … 6430 6430 #endif 6431 6431 ! 6432 IF ( type_trac == 'inca' .OR. type_trac == 'inco') THEN6432 IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN 6433 6433 #ifdef INCA 6434 6434 CALL VTe(VTphysiq)
Note: See TracChangeset
for help on using the changeset viewer.