- Timestamp:
- Sep 18, 2017, 5:32:12 PM (7 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/clesphys.h
r2973 r2989 20 20 REAL(kind=8) CH4_ppb, N2O_ppb, CFC11_ppt, CFC12_ppt 21 21 !IM ajout CFMIP2/CMIP5 22 LOGICAL ok_4xCO2atm23 22 REAL(kind=8) RCO2_per,RCH4_per,RN2O_per,RCFC11_per,RCFC12_per 24 23 REAL(kind=8) CH4_ppb_per,N2O_ppb_per,CFC11_ppt_per,CFC12_ppt_per … … 124 123 & , iflag_con, nbapp_cv, nbapp_wk & 125 124 & , iflag_ener_conserv & 126 & , ok_4xCO2atm &127 125 & , ok_suntime_rrtm & 128 126 & , overlap & -
LMDZ5/trunk/libf/phylmd/conf_phys_m.F90
r2952 r2989 157 157 REAL,SAVE :: CFC11_ppt_omp,RCFC11_omp,CFC11_ppt_per_omp,RCFC11_per_omp 158 158 REAL,SAVE :: CFC12_ppt_omp,RCFC12_omp,CFC12_ppt_per_omp,RCFC12_per_omp 159 LOGICAL,SAVE :: ok_4xCO2atm_omp160 159 REAL,SAVE :: epmax_omp 161 160 REAL,SAVE :: coef_epmax_cape_omp … … 664 663 !Config Help = 665 664 666 ok_4xCO2atm_omp = .FALSE.667 CALL getin('ok_4xCO2atm',ok_4xCO2atm_omp)668 669 665 !Config Key = RCH4_per 670 666 !Config Desc = Concentration du CH4_per … … 2152 2148 RCFC11_act = RCFC11 2153 2149 RCFC12_act = RCFC12 2154 ok_4xCO2atm = ok_4xCO2atm_omp2155 2150 RCO2_per = RCO2_per_omp 2156 2151 RCH4_per = RCH4_per_omp … … 2501 2496 write(lunout,*)' CFC11_ppt=',CFC11_ppt,' RCFC11_act= ',RCFC11_act 2502 2497 write(lunout,*)' CFC12_ppt=',CFC12_ppt,' RCFC12_act= ',RCFC12_act 2503 write(lunout,*)' ok_4xCO2atm=',ok_4xCO2atm2504 2498 write(lunout,*)' RCO2_per = ',RCO2_per,' RCH4_per = ', RCH4_per 2505 2499 write(lunout,*)' RN2O_per = ',RN2O_per,' RCFC11_per = ', RCFC11_per -
LMDZ5/trunk/libf/phylmd/iophy.F90
r2856 r2989 459 459 USE mod_phys_lmdz_para, ONLY: jj_nb 460 460 USE phys_output_var_mod, ONLY: type_ecri, zoutm, zdtime_moy, lev_files, & 461 nid_files, nhorim, swaero_diag, dryaod_diag, nfiles 461 nid_files, nhorim, swaero_diag, dryaod_diag, nfiles, & 462 ok_4xCO2atm 462 463 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 463 464 USE aero_mod, ONLY : naero_tot, name_aero_tau … … 517 518 ENDDO 518 519 520 ! Set ok_4xCO2atm=true if at least one of the concerned variables are 521 ! defined 522 IF (nomvar=='rsut4co2'.OR.nomvar=='rlut4co2'.OR.nomvar=='rsutcs4co2' & 523 .OR. nomvar=='rlutcs4co2'.OR.nomvar=='rsu4co2'.OR.nomvar=='rsucs4co2' & 524 .OR.nomvar=='rsu4co2'.OR.nomvar=='rsucs4co2'.OR.nomvar=='rsd4co2'.OR. & 525 nomvar=='rsdcs4co2'.OR.nomvar=='rlu4co2'.OR.nomvar=='rlucs4co2'.OR.& 526 nomvar=='rld4co2'.OR.nomvar=='rldcs4co2') THEN 527 IF ( flag_var(iff)<=lev_files(iff) ) ok_4xCO2atm=.TRUE. 528 ENDIF 519 529 END SUBROUTINE histdef2d_old 520 530 … … 573 583 USE phys_output_var_mod, ONLY: ctrl_out, type_ecri_files, zoutm, zdtime_moy, & 574 584 clef_stations, phys_out_filenames, lev_files, & 575 nid_files, nhorim, swaero_diag, dryaod_diag 585 nid_files, nhorim, swaero_diag, dryaod_diag,& 586 ok_4xCO2atm 576 587 USE print_control_mod, ONLY: prt_level,lunout 577 588 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat … … 663 674 ENDIF 664 675 ENDDO 676 ! Set ok_4xCO2atm=true if at least one of the concerned variables are 677 ! defined 678 IF (var%name=='rsut4co2'.OR.var%name=='rlut4co2'.OR.var%name=='rsutcs4co2' & 679 .OR. var%name=='rlutcs4co2'.OR.var%name=='rsu4co2'.OR.var%name=='rsucs4co2' & 680 .OR.var%name=='rsu4co2'.OR.var%name=='rsucs4co2'.OR.var%name=='rsd4co2'.OR. & 681 var%name=='rsdcs4co2'.OR.var%name=='rlu4co2'.OR.var%name=='rlucs4co2'.OR.& 682 var%name=='rld4co2'.OR.var%name=='rldcs4co2') THEN 683 IF ( var%flag(iff)<=lev_files(iff) ) ok_4xCO2atm=.TRUE. 684 ENDIF 665 685 END SUBROUTINE histdef2d 666 686 -
LMDZ5/trunk/libf/phylmd/phys_output_mod.F90
r2854 r2989 520 520 WRITE(lunout,*)'swaero_diag=',swaero_diag 521 521 WRITE(lunout,*)'dryaod_diag=',dryaod_diag 522 WRITE(lunout,*)'ok_4xCO2atm=',ok_4xCO2atm 522 523 WRITE(lunout,*)'phys_output_open: ends here' 523 524 ENDIF -
LMDZ5/trunk/libf/phylmd/phys_output_var_mod.F90
r2958 r2989 92 92 LOGICAL, SAVE :: dryaod_diag=.TRUE. 93 93 !$OMP THREADPRIVATE(swaero_diag, dryaod_diag) 94 ! ok_4xCO2atm : flag indicates if it is necessary to do a second call of 95 ! radiation code with a 4xCO2 or another different GES to assess SW/LW 96 ! in this case 97 !--IM: as for swaero_diag or dryaod_diag this needs to be set to TRUE by default and 98 !-- changed back to FALSE after first radiation call and corrected back to TRUE 99 !-- based on output requests 100 LOGICAL, SAVE :: ok_4xCO2atm=.FALSE. 101 !$OMP THREADPRIVATE(ok_4xCO2atm) 94 102 95 103 INTEGER, SAVE:: levmin(nfiles) = 1 -
LMDZ5/trunk/libf/phylmd/phys_output_write_mod.F90
r2973 r2989 320 320 map_emis_ThCi,map_pcld_ThCi,map_tcld_ThCi,& 321 321 map_emis_Anv,map_pcld_Anv,map_tcld_Anv, & 322 alt_tropo 322 alt_tropo, & 323 !Ionela 324 ok_4xCO2atm 323 325 324 326 USE ocean_slab_mod, ONLY: nslay, tslab, slab_bils, slab_bilg, tice, & … … 1733 1735 CALL histwrite_phy(o_ref_liq, ref_liq) 1734 1736 CALL histwrite_phy(o_ref_ice, ref_ice) 1735 IF (RCO2_per.NE.RCO2_act.OR.RCH4_per.NE.RCH4_act.OR. & 1736 RN2O_per.NE.RN2O_act.OR.RCFC11_per.NE.RCFC11_act.OR. & 1737 RCFC12_per.NE.RCFC12_act) THEN 1737 ! 1738 IF (ok_4xCO2atm) THEN 1738 1739 IF (vars_defined) zx_tmp_fi2d(:) = swupp(:,klevp1)*swradcorr(:) 1739 1740 CALL histwrite_phy(o_rsut4co2, zx_tmp_fi2d) … … 1764 1765 CALL histwrite_phy(o_rld4co2, lwdnp) 1765 1766 CALL histwrite_phy(o_rldcs4co2, lwdn0p) 1766 ENDIF 1767 ENDIF !ok_4xCO2atm 1767 1768 !!!!!!!!!!!! Sorties niveaux de pression NMC !!!!!!!!!!!!!!!!!!!! 1768 1769 #ifdef CPP_IOIPSL -
LMDZ5/trunk/libf/phylmd/physiq_mod.F90
r2984 r2989 1610 1610 IF (xios_field_is_active("dryod550_"//name_aero_tau(naero))) dryaod_diag=.TRUE. 1611 1611 ENDDO 1612 ! 1613 !--setting up ok_4xCO2atm to TRUE in XIOS case 1614 IF (xios_field_is_active("rsut4co2").OR.xios_field_is_active("rlut4co2").OR. & 1615 xios_field_is_active("rsutcs4co2").OR.xios_field_is_active("rlutcs4co2").OR. & 1616 xios_field_is_active("rsu4co2").OR.xios_field_is_active("rsucs4co2").OR. & 1617 xios_field_is_active("rsd4co2").OR.xios_field_is_active("rsdcs4co2").OR. & 1618 xios_field_is_active("rlu4co2").OR.xios_field_is_active("rlucs4co2").OR. & 1619 xios_field_is_active("rld4co2").OR.xios_field_is_active("rldcs4co2")) & 1620 ok_4xCO2atm=.TRUE. 1612 1621 #endif 1613 1622 … … 3725 3734 IF (debut) swaero_diag = .FALSE. 3726 3735 IF (debut) dryaod_diag = .FALSE. 3736 !--IM 15/09/2017 here we return ok_4xCO2atm to FALSE 3737 !--as for swaero_diag, see above 3738 IF (debut) ok_4xCO2atm = .FALSE. 3727 3739 #endif 3728 3740 ! … … 3731 3743 !IM Par defaut on a les taux perturbes egaux aux taux actuels 3732 3744 ! 3745 IF (RCO2_per.NE.RCO2_act.OR. & 3746 RCH4_per.NE.RCH4_act.OR. & 3747 RN2O_per.NE.RN2O_act.OR. & 3748 RCFC11_per.NE.RCFC11_act.OR. & 3749 RCFC12_per.NE.RCFC12_act) ok_4xCO2atm =.TRUE. 3750 ! 3733 3751 IF (ok_4xCO2atm) THEN 3734 IF (RCO2_per.NE.RCO2_act.OR.RCH4_per.NE.RCH4_act.OR. &3735 RN2O_per.NE.RN2O_act.OR.RCFC11_per.NE.RCFC11_act.OR. &3736 RCFC12_per.NE.RCFC12_act) THEN3737 3752 ! 3738 3753 RCO2 = RCO2_per … … 3782 3797 ZLWFT0_i, ZFLDN0, ZFLUP0, & 3783 3798 ZSWFT0_i, ZFSDN0, ZFSUP0) 3784 endif3785 3799 endif 3786 3800 !
Note: See TracChangeset
for help on using the changeset viewer.