Changeset 2704 for LMDZ5/trunk
- Timestamp:
- Nov 20, 2016, 2:15:32 PM (8 years ago)
- Location:
- LMDZ5/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/DefLists/field_def_lmdz.xml
r2698 r2704 111 111 <field id="bils_enthalp" long_name="Surf. total heat flux" unit="W/m2" /> 112 112 <field id="bils_latent" long_name="Surf. total heat flux" unit="W/m2" /> 113 114 115 116 117 118 119 120 121 113 <field id="bils_ech" long_name="peu importe" unit="W/m2" /> 114 <field id="du_gwd_rando" long_name="peu importe" unit="W/m2" /> 115 <field id="dv_gwd_rando" long_name="peu importe" unit="W/m2" /> 116 <field id="ustr_gwd_hines" long_name="zonal wind stress Hines gravity waves" unit="Pa" /> 117 <field id="vstr_gwd_hines" long_name="meridional wind stress Hines gravity waves" unit="Pa" /> 118 <field id="ustr_gwd_front" long_name="zonal wind stress fronts gravity waves" unit="Pa" /> 119 <field id="vstr_gwd_front" long_name="meridional wind stress fronts gravity waves" unit="Pa" /> 120 <field id="ustr_gwd_rando" long_name="zonal wind stress random gravity waves" unit="Pa" /> 121 <field id="vstr_gwd_rando" long_name="meridinal wind stress random gravity waves" unit="Pa" /> 122 122 <field id="sens" long_name="Sensible heat flux" unit="W/m2" /> 123 123 <field id="fder" long_name="Heat flux derivation" unit="W/m2" /> … … 573 573 <field id="dulif" long_name="Orography dU" unit="m/s2" /> 574 574 <field id="dvlif" long_name="Orography dV" unit="m/s2" /> 575 576 577 578 579 580 575 <field id="du_gwd_hines" long_name="Hines GWD dU" unit="m/s2" /> 576 <field id="dv_gwd_hines" long_name="Hines GWD dV" unit="m/s2" /> 577 <field id="du_gwd_front" long_name="Fronts GWD dU" unit="m/s2" /> 578 <field id="dv_gwd_front" long_name="Fronts GWD dV" unit="m/s2" /> 579 <field id="east_gwstress" long_name="Eastward GW Stress" unit="Pa" /> 580 <field id="west_gwstress" long_name="Westward GW Stress" unit="Pa" /> 581 581 <field id="dtoro" long_name="Orography dT" unit="K/s" /> 582 582 <field id="dtlif" long_name="Orography dT" unit="K/s" /> … … 614 614 </field_group> 615 615 616 <field_group id="fields_3D_strataer" domain_ref="dom_glo" axis_ref="presnivs"> 616 <field_group id="fields_strataer_trac_3D" domain_ref="dom_glo" axis_ref="presnivs"/> 617 <field_group id="fields_strataer_trac_2D" domain_ref="dom_glo"/> 618 619 <field_group id="fields_strataer_3D" domain_ref="dom_glo" axis_ref="presnivs"> 617 620 <field id="ext_strat_550" long_name="Strat. aerosol extinction coefficient at 550 nm" unit="1/m" /> 618 621 <field id="ext_strat_1020" long_name="Strat. aerosol extinction coefficient at 1020 nm" unit="1/m" /> … … 629 632 <field id="f_r_wet" long_name="Conversion factor dry to wet aerosol radius" unit="-" /> 630 633 </field_group> 631 <field_group id="fields_2D_strataer" domain_ref="dom_glo"> 634 635 <field_group id="fields_strataer_2D" domain_ref="dom_glo"> 632 636 <field id="OD550_strat_only" long_name="Stratospheric Aerosol Optical depth at 550 nm " unit="1" /> 633 637 <field id="OD1020_strat_only" long_name="Stratospheric Aerosol Optical depth at 1020 nm " unit="1" /> … … 662 666 </field_group> 663 667 664 <field_group id="fields_trac " domain_ref="dom_glo">668 <field_group id="fields_trac_2D" domain_ref="dom_glo"> 665 669 <field id="cumRN" long_name="Cumulated tracer RNVL1" unit="-" /> 666 670 <field id="cumPB" long_name="Cumulated tracer PBVL1" unit="-" /> … … 668 672 </field_group> 669 673 670 <field_group id="fields_trac " domain_ref="dom_glo" axis_ref="presnivs">674 <field_group id="fields_trac_3D" domain_ref="dom_glo" axis_ref="presnivs"> 671 675 <field id="RN" long_name="Tracer RNVL1" unit="-" /> 672 676 <field id="dRN_vdf" long_name="Tendance tracer RNVL1" unit="-" /> … … 758 762 <field id="c20_atb532" long_name="Lidar Attenuated Total Backscatter (532 nm)" unit="1" axis_ref="height_mlev" /> 759 763 <field id="beta_mol532" long_name="Lidar Molecular Backscatter (532 nm)" unit="m-1 sr-1" axis_ref="height_mlev" /> 760 <field id="cllcalipsoice" 761 <field id="clhcalipsoice" 762 <field id="clmcalipsoice" 763 <field id="cltcalipsoice" 764 <field id="clcalipsoice" long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" />765 <field id="cllcalipsoliq" 766 <field id="clhcalipsoliq" 767 <field id="clmcalipsoliq" 768 <field id="cltcalipsoliq" 769 <field id="clcalipsoliq" long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" />764 <field id="cllcalipsoice" long_name="Lidar Ice-Phase Low-level Cloud Fraction" unit="%" /> 765 <field id="clhcalipsoice" long_name="Lidar Ice-Phase Hight-level Cloud Fraction" unit="%" /> 766 <field id="clmcalipsoice" long_name="Lidar Ice-Phase Mid-level Cloud Fraction" unit="%" /> 767 <field id="cltcalipsoice" long_name="Lidar Ice-Phase Total Cloud Fraction" unit="%" /> 768 <field id="clcalipsoice" long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" /> 769 <field id="cllcalipsoliq" long_name="Lidar Liq-Phase Low-level Cloud Fraction" unit="%" /> 770 <field id="clhcalipsoliq" long_name="Lidar Liq-Phase Hight-level Cloud Fraction" unit="%" /> 771 <field id="clmcalipsoliq" long_name="Lidar Liq-Phase Mid-level Cloud Fraction" unit="%" /> 772 <field id="cltcalipsoliq" long_name="Lidar Liq-Phase Total Cloud Fraction" unit="%" /> 773 <field id="clcalipsoliq" long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" /> 770 774 <field id="cllcalipsoun" long_name="Lidar Undefined-Phase Low-level Cloud Fraction" unit="%" /> 771 775 <field id="clhcalipsoun" long_name="Lidar Undefined-Phase Hight-level Cloud Fraction" unit="%" /> 772 776 <field id="clmcalipsoun" long_name="Lidar Undefined-Phase Mid-level Cloud Fraction" unit="%" /> 773 777 <field id="cltcalipsoun" long_name="Lidar Undefined-Phase Total Cloud Fraction" unit="%" /> 774 <field id="clcalipsoun" long_name="Lidar Undefined-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" />775 <field id="clcalipsotmp" long_name="Lidar Cloud Fraction (532 nm)" unit="%" axis_ref="temp" />776 <field id="clcalipsotmpliq" 777 <field id="clcalipsotmpice" 778 <field id="clcalipsoun" long_name="Lidar Undefined-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="height" /> 779 <field id="clcalipsotmp" long_name="Lidar Cloud Fraction (532 nm)" unit="%" axis_ref="temp" /> 780 <field id="clcalipsotmpliq" long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="temp" /> 781 <field id="clcalipsotmpice" long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="%" axis_ref="temp" /> 778 782 <field id="clcalipsotmpun" long_name="Undefined-Phase Total Cloud Fraction" unit="%" axis_ref="temp" /> 779 783 </field_group> … … 905 909 </field_group> 906 910 907 908 911 <field_group id="field_scalar" operation="instant" freq_op="30d" grid_ref="grid_scalar"> 909 912 <field id="R_ecc" long_name="R_ecc" unit="-" /> … … 911 914 <field id="R_incl" long_name="R_incl" unit="deg" /> 912 915 <field id="solaire" long_name="solaire" unit="W/m2" /> 913 914 916 <field id="rsun1" long_name="Fraction constante solaire bande 1" unit="W/m2" /> 915 917 <field id="rsun2" long_name="Fraction constante solaire bande 2" unit="W/m2" /> … … 918 920 <field id="rsun5" long_name="Fraction constante solaire bande 5" unit="W/m2" /> 919 921 <field id="rsun6" long_name="Fraction constante solaire bande 6" unit="W/m2" /> 920 921 922 <field id="co2_ppm" long_name="co2_ppm" unit="ppm" /> 922 923 <field id="CH4_ppb" long_name="CH4_ppb" unit="ppb" /> -
LMDZ5/trunk/DefLists/file_def_histmth_lmdz.xml
r2678 r2704 9 9 <!-- <field field_ref="Alt" level="1" /> --> 10 10 <!-- </field_group> --> 11 12 11 13 12 <field_group operation="instant" freq_op="30d"> … … 29 28 <field field_ref="CFC11_ppt" level="1" name="CFC11_ppt" /> 30 29 <field field_ref="CFC12_ppt" level="1" name="CFC12_ppt" /> 31 32 30 </field_group> 33 31 … … 601 599 <field field_ref="rldcs4co2" level="5" /> 602 600 </field_group> 601 602 <field_group group_ref="fields_strataer_3D" operation="average" freq_op="1ts" level="1" /> 603 <field_group group_ref="fields_strataer_2D" operation="average" freq_op="1ts" level="1" /> 604 <field_group group_ref="fields_strataer_trac_3D" operation="average" freq_op="1ts" level="1" /> 605 <field_group group_ref="fields_strataer_trac_2D" operation="average" freq_op="1ts" level="1" /> 606 603 607 </file> 604 608 605 609 </file_group> 606 610 </file_definition> 607 -
LMDZ5/trunk/libf/phylmd/StratAer/interp_sulf_input.F90
r2695 r2704 71 71 !$OMP THREADPRIVATE(OCS_clim,SO2_clim) 72 72 ! 73 INTEGER i, k, kk, ilon, ilev,j73 INTEGER i, k, kk, j 74 74 REAL p_bound 75 75 … … 89 89 5.53084382e+01, 3.35462635e+01, 0.0 /) 90 90 ! 91 REAL, PARAMETER :: epsilon_OCS=1.0e-20 ! minimum OCS concentration [kg/kgA] for weighting of lifetime92 REAL, PARAMETER :: epsilon_SO2=1.0e-20 ! minimum SO2 concentration [kg/kgA] for weighting of lifetime93 REAL, PARAMETER :: min_OCS_lifetime= 3600. !minimum OCS lifetime [sec]94 REAL, PARAMETER :: min_SO2_lifetime=86400. !minimum SO2 lifetime [sec]95 96 91 IF (.NOT.ALLOCATED(OCS_clim)) ALLOCATE(OCS_clim(klon,klev)) 97 92 IF (.NOT.ALLOCATED(SO2_clim)) ALLOCATE(SO2_clim(klon,klev)) … … 183 178 184 179 !---regrid weighted lifetime and climatologies 185 DO i=1, klon 180 DO i=1, klon_glo 186 181 DO k=1, klev 187 182 OCS_lifetime_glo(i,k)=0.0 … … 206 201 ENDDO 207 202 208 ENDIF ! is_mpi_root203 ENDIF !--is_mpi_root and is_omp_root 209 204 210 205 !--keep memory of previous month … … 255 250 256 251 !convert SO2_backgr_tend from kg(SO2)/kgA to kg(S)/m2/layer/s for saving as diagnostic 257 DO i lon=1, klon258 DO ilev=1, klev259 SO2_backgr_tend(i lon,ilev)=SO2_backgr_tend(ilon,ilev)*mSatom/mSO2mol*(paprs(ilon,ilev)-paprs(ilon,ilev+1))/RG/pdtphys260 OCS_backgr_tend(i lon,ilev)=OCS_backgr_tend(ilon,ilev)*mSatom/mOCSmol*(paprs(ilon,ilev)-paprs(ilon,ilev+1))/RG/pdtphys252 DO i=1, klon 253 DO k=1, klev 254 SO2_backgr_tend(i,k)=SO2_backgr_tend(i,k)*mSatom/mSO2mol*(paprs(i,k)-paprs(i,k+1))/RG/pdtphys 255 OCS_backgr_tend(i,k)=OCS_backgr_tend(i,k)*mSatom/mOCSmol*(paprs(i,k)-paprs(i,k+1))/RG/pdtphys 261 256 ENDDO 262 257 ENDDO -
LMDZ5/trunk/libf/phylmd/StratAer/miecalc_aer.F90
r2690 r2704 24 24 USE mod_grid_phy_lmdz, ONLY : klon_glo 25 25 USE mod_phys_lmdz_mpi_data, ONLY : is_mpi_root 26 USE print_control_mod, ONLY: prt_level, lunout 26 27 27 28 IMPLICIT NONE … … 70 71 PARAMETER (Nbin=10) 71 72 72 !--has to be consistent with dataset73 INTEGER nb_lambda_h2so474 PARAMETER (nb_lambda_h2so4=62) !61, 23575 73 76 74 !---wavelengths STREAMER … … 131 129 REAL final_w(1:NwvmaxSW+nwave_sw+nwave_lw+NwvmaxLW) 132 130 133 INTEGER band, bandSW, bandLW 131 INTEGER band, bandSW, bandLW, wavenumber 134 132 135 133 !---wavelengths SW RRTM … … 156 154 REAL ss_g(nbands_sw_rrtm+nbands_lw_rrtm+nwave_sw+nwave_lw) 157 155 158 REAL wavenumber 159 REAL, DIMENSION(nb_lambda_h2so4,4) :: ref_ind 160 156 INTEGER, PARAMETER :: nb_lambda_h2so4=62 157 REAL, DIMENSION (nb_lambda_h2so4,4) :: ref_ind 158 !-- fichier h2so4_0.75_300.00_hummel_1988_p_q.dat 159 ! -- wavenumber (cm-1), wavelength (um), n_r, n_i 160 DATA ref_ind / & 161 200.000, 50.0000, 2.01000, 6.5000E-01, & 162 250.000, 40.0000, 1.94000, 6.3000E-01, & 163 285.714, 35.0000, 1.72000, 5.2000E-01, & 164 333.333, 30.0000, 1.73000, 2.9000E-01, & 165 358.423, 27.9000, 1.78000, 2.5000E-01, & 166 400.000, 25.0000, 1.84000, 2.4000E-01, & 167 444.444, 22.5000, 1.82000, 2.9000E-01, & 168 469.484, 21.3000, 1.79000, 2.5000E-01, & 169 500.000, 20.0000, 1.81000, 2.3000E-01, & 170 540.541, 18.5000, 1.92700, 3.0200E-01, & 171 555.556, 18.0000, 1.95000, 4.1000E-01, & 172 581.395, 17.2000, 1.72400, 5.9000E-01, & 173 609.756, 16.4000, 1.52000, 4.1400E-01, & 174 666.667, 15.0000, 1.59000, 2.1100E-01, & 175 675.676, 14.8000, 1.61000, 2.0500E-01, & 176 714.286, 14.0000, 1.64000, 1.9500E-01, & 177 769.231, 13.0000, 1.69000, 1.9500E-01, & 178 800.000, 12.5000, 1.74000, 1.9800E-01, & 179 869.565, 11.5000, 1.89000, 3.7400E-01, & 180 909.091, 11.0000, 1.67000, 4.8500E-01, & 181 944.198, 10.5910, 1.72000, 3.4000E-01, & 182 1000.000, 10.0000, 1.89000, 4.5500E-01, & 183 1020.408, 9.8000, 1.91000, 6.8000E-01, & 184 1052.632, 9.5000, 1.67000, 7.5000E-01, & 185 1086.957, 9.2000, 1.60000, 5.8600E-01, & 186 1111.111, 9.0000, 1.65000, 6.3300E-01, & 187 1149.425, 8.7000, 1.53000, 7.7200E-01, & 188 1176.471, 8.5000, 1.37000, 7.5500E-01, & 189 1219.512, 8.2000, 1.20000, 6.4500E-01, & 190 1265.823, 7.9000, 1.14000, 4.8800E-01, & 191 1388.889, 7.2000, 1.21000, 1.7600E-01, & 192 1538.462, 6.5000, 1.37000, 1.2800E-01, & 193 1612.903, 6.2000, 1.42400, 1.6500E-01, & 194 1666.667, 6.0000, 1.42500, 1.9500E-01, & 195 1818.182, 5.5000, 1.33700, 1.8300E-01, & 196 2000.000, 5.0000, 1.36000, 1.2100E-01, & 197 2222.222, 4.5000, 1.38500, 1.2000E-01, & 198 2500.000, 4.0000, 1.39800, 1.2600E-01, & 199 2666.667, 3.7500, 1.39600, 1.3100E-01, & 200 2857.143, 3.5000, 1.37600, 1.5800E-01, & 201 2948.113, 3.3920, 1.35200, 1.5900E-01, & 202 3125.000, 3.2000, 1.31100, 1.3500E-01, & 203 3333.333, 3.0000, 1.29300, 9.5500E-02, & 204 3703.704, 2.7000, 1.30300, 5.7000E-03, & 205 4000.000, 2.5000, 1.34400, 3.7600E-03, & 206 4444.444, 2.2500, 1.37000, 1.8000E-03, & 207 5000.000, 2.0000, 1.38400, 1.2600E-03, & 208 5555.556, 1.8000, 1.39000, 5.5000E-04, & 209 6510.417, 1.5360, 1.40300, 1.3700E-04, & 210 7692.308, 1.3000, 1.41000, 1.0000E-05, & 211 9433.962, 1.0600, 1.42000, 1.5000E-06, & 212 11627.907, 0.8600, 1.42500, 1.7900E-07, & 213 14409.222, 0.6940, 1.42800, 1.9900E-08, & 214 15797.788, 0.6330, 1.42900, 1.4700E-08, & 215 18181.818, 0.5500, 1.43000, 1.0000E-08, & 216 19417.476, 0.5150, 1.43100, 1.0000E-08, & 217 20491.803, 0.4880, 1.43200, 1.0000E-08, & 218 25000.000, 0.4000, 1.44000, 1.0000E-08, & 219 29673.591, 0.3370, 1.45900, 1.0000E-08, & 220 33333.333, 0.3000, 1.46900, 1.0000E-08, & 221 40000.000, 0.2500, 1.48400, 1.0000E-08, & 222 50000.000, 0.2000, 1.49800, 1.0000E-08 / 161 223 !--------------------------------------------------------- 162 224 163 225 IF (debut) THEN 226 164 227 !--initialising dry diameters to geometrically spaced mass/volume (see Jacobson 1994) 165 228 mdw(1)=mdwmin … … 176 239 PRINT *,'init mdw=', mdw 177 240 178 !$OMP MASTER179 180 ! CALL gather(tr_seri, tr_seri_glo)181 ! IF (is_mpi_root) THEN182 ! IF (MAXVAL(tr_seri_glo).LT.1e-30) THEN183 184 241 !--compute particle radius for a composition of 75% H2SO4 / 25% H2O at T=293K 185 242 DO bin_number=1, nbtr_bin … … 225 282 & lambda_int(NwvmaxSW+nwave_sw+nwave_lw+Nwv) 226 283 227 OPEN (unit=11,file='h2so4_0.75_300.00_hummel_1988_p_q.dat')228 229 284 IF (refr_ind_interpol) THEN 230 DO nb=1,nb_lambda_h2so4 231 READ(11,*) ref_ind(nb,:) 232 ENDDO 285 233 286 ilambda_max=ref_ind(1,2)/1.e6 !--in m 234 287 ilambda_min=ref_ind(nb_lambda_h2so4,2)/1.e6 !--in m … … 259 312 ENDIF 260 313 ENDDO 261 ELSE 262 DO nb=1,nb_lambda_h2so4 263 READ(11,*) wavenumber, ilambda, n_r_h2so4, n_i_h2so4 264 ilambda=1000.*ilambda !wavelength in nm 265 DO Nwv=1, NwvmaxSW+nwave_sw+nwave_lw+NwvmaxLW 266 IF (ilambda/1.e9.GT.lambda_int(Nwv)) THEN !--- step function 267 n_r(Nwv)=n_r_h2so4 268 n_i(Nwv)=n_i_h2so4 314 315 ELSE !-- no refr_ind_interpol, closest neighbour from upper wavelength 316 317 DO Nwv=1, NwvmaxSW+nwave_sw+nwave_lw+NwvmaxLW 318 n_r(Nwv)=ref_ind(1,3) 319 n_i(Nwv)=ref_ind(1,4) 320 DO nb=2,nb_lambda_h2so4 321 IF (ref_ind(nb,2)/1.e6.GT.lambda_int(Nwv)) THEN !--- step function 322 n_r(Nwv)=ref_ind(nb,3) 323 n_i(Nwv)=ref_ind(nb,4) 269 324 ENDIF 270 325 ENDDO 271 326 ENDDO 272 327 ENDIF 273 CLOSE(11)274 328 275 329 !---Loop on wavelengths … … 400 454 401 455 ENDDO !--loop on wavelength 402 403 456 404 457 !---averaging over LMDZ wavebands … … 491 544 piz_bin(nb,bin_number)=ss_w(nb) 492 545 cg_bin(nb,bin_number)=ss_g(nb) 493 494 546 ENDDO 495 547 496 548 ENDDO !loop over tracer bins 497 549 498 ! ENDIF !mpi_root 499 500 !$OMP END MASTER 501 CALL bcast(alpha_bin) 502 CALL bcast(piz_bin) 503 CALL bcast(cg_bin) 504 !$OMP BARRIER 505 506 ! CALL scatter(alpha_bin, alpha_bin) 507 ! CALL scatter(piz_bin, piz_bin) 508 ! CALL scatter(cg_bin, cg_bin) 550 !!$OMP END MASTER 551 ! CALL bcast(alpha_bin) 552 ! CALL bcast(piz_bin) 553 ! CALL bcast(cg_bin) 554 !!$OMP BARRIER 509 555 510 556 !set to default values at first time step (tr_seri still zero) … … 515 561 tau_strat_wave(:,:,:)=1.e-15 516 562 517 ELSE 518 519 ! CALL gather(tr_seri, tr_seri_glo) 563 ELSE !-- not debut 520 564 521 565 !--compute optical properties of actual size distribution (from tr_seri) -
LMDZ5/trunk/libf/phylmd/StratAer/traccoag_mod.F90
r2700 r2704 73 73 REAL,PARAMETER :: xlat_sai=0.0 ! latitude of SAI in degree 74 74 REAL,PARAMETER :: xlon_sai=120.35 ! longitude of SAI in degree 75 76 !--be careful - this needs to be changed with resolution - here for 96x95 - seems to work for 48x36 as well77 REAL,PARAMETER :: dlat=0.9474 ! d latitude in degree78 REAL,PARAMETER :: dlon=1.875 ! d longitude in degree79 75 80 76 !--other local variables … … 95 91 REAL :: zdz ! thickness of atm. model layer in m 96 92 REAL,DIMENSION(klon,klev) :: dens_aer ! density of aerosol particles [kg/m3 aerosol] with default H2SO4 mass fraction 93 REAL :: dlat, dlon ! d latitude and d longitude of grid in degree 97 94 98 95 IF (is_mpi_root) THEN 99 96 PRINT *,'in traccoag: date from phys_cal_mod =',year_cur,'-',mth_cur,'-',day_cur,'-',hour 100 97 ENDIF 98 99 dlat=180./2./FLOAT(nbp_lat) ! d latitude in degree 100 dlon=360./2./FLOAT(nbp_lon) ! d longitude in degree 101 101 102 102 DO it=1, nbtr_bin … … 168 168 DO i=1,klon 169 169 !Pinatubo eruption at 15.14N, 120.35E 170 IF ( xlat(i).G T.xlat_vol-dlat .AND. xlat(i).LT.xlat_vol+dlat .AND. &171 xlon(i).G T.xlon_vol-dlon .AND. xlon(i).LT.xlon_vol+dlon ) THEN170 IF ( xlat(i).GE.xlat_vol-dlat .AND. xlat(i).LT.xlat_vol+dlat .AND. & 171 xlon(i).GE.xlon_vol-dlon .AND. xlon(i).LT.xlon_vol+dlon ) THEN 172 172 ! compute altLMDz 173 173 altLMDz(:)=0.0 … … 209 209 ! IF ((mth_cur==4 .AND. & 210 210 ! SAI continuous emission o 211 IF ( xlat(i).G T.xlat_sai-dlat .AND. xlat(i).LT.xlat_sai+dlat .AND. &212 & xlon(i).G T.xlon_sai-dlon .AND. xlon(i).LT.xlon_sai+dlon ) THEN211 IF ( xlat(i).GE.xlat_sai-dlat .AND. xlat(i).LT.xlat_sai+dlat .AND. & 212 & xlon(i).GE.xlon_sai-dlon .AND. xlon(i).LT.xlon_sai+dlon ) THEN 213 213 ! compute altLMDz 214 214 altLMDz(:)=0.0 -
LMDZ5/trunk/libf/phylmd/conf_phys_m.F90
r2702 r2704 117 117 INTEGER, SAVE :: iflag_ratqs_omp 118 118 119 R eal, SAVE :: f_cdrag_ter_omp,f_cdrag_oce_omp120 R eal, SAVE :: f_rugoro_omp , z0min_omp121 R eal, SAVE :: z0m_seaice_omp,z0h_seaice_omp119 REAL, SAVE :: f_cdrag_ter_omp,f_cdrag_oce_omp 120 REAL, SAVE :: f_rugoro_omp , z0min_omp 121 REAL, SAVE :: z0m_seaice_omp,z0h_seaice_omp 122 122 REAL, SAVE :: min_wind_speed_omp,f_gust_wk_omp,f_gust_bl_omp,f_qsat_oce_omp, f_z0qh_oce_omp 123 123 INTEGER, SAVE :: iflag_gusts_omp,iflag_z0_oce_omp … … 186 186 INTEGER,SAVE :: iflag_pbl_split_omp 187 187 INTEGER,SAVE :: iflag_order2_sollw_omp 188 I nteger, SAVE :: lev_histins_omp, lev_histLES_omp188 INTEGER, SAVE :: lev_histins_omp, lev_histLES_omp 189 189 INTEGER, SAVE :: lev_histdayNMC_omp 190 190 INTEGER, SAVE :: levout_histNMC_omp(3) -
LMDZ5/trunk/libf/phylmd/phys_output_mod.F90
r2690 r2704 41 41 USE mod_phys_lmdz_para 42 42 USE aero_mod, only : naero_spc,name_aero 43 43 !Martin 44 44 USE surface_data, ONLY : ok_snow 45 45 USE phys_output_ctrlout_mod … … 265 265 CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) 266 266 CALL ymds2ju(annee_ref, 1, day_ini, start_time*rday, zjulian_start) 267 END 267 ENDIF 268 268 269 269 #ifdef CPP_XIOS … … 293 293 WRITE(lunout,*)'Bp Hybrid = ',Bhyb(1:klev) 294 294 WRITE(lunout,*)'Alt approx des couches pour une haut d echelle de 8km = ',Alt(1:klev) 295 ! endif295 ! ENDIF 296 296 297 297 ecrit_files(7) = ecrit_files(1) … … 302 302 303 303 ! Calculate ecrit_files for all files 304 IF ( chtimestep(iff).eq.'Default' ) then304 IF ( chtimestep(iff).eq.'Default' ) THEN 305 305 ! Par defaut ecrit_files = (ecrit_mensuel ecrit_jour ecrit_hf 306 306 ! ...)*86400. 307 307 ecrit_files(iff)=ecrit_files(iff)*86400. 308 ELSE IF (chtimestep(iff).eq.'-1') then308 ELSE IF (chtimestep(iff).eq.'-1') THEN 309 309 PRINT*,'ecrit_files(',iff,') < 0 so IOIPSL work on different' 310 310 PRINT*,'months length' 311 311 ecrit_files(iff)=-1. 312 else312 ELSE 313 313 CALL convers_timesteps(chtimestep(iff),dtime,ecrit_files(iff)) 314 314 ENDIF … … 320 320 #ifdef CPP_XIOS 321 321 !!! Ouverture de chaque fichier XIOS !!!!!!!!!!! 322 IF (.not. ok_all_xml) then323 if (prt_level >= 10) then322 IF (.not. ok_all_xml) THEN 323 IF (prt_level >= 10) THEN 324 324 print*,'phys_output_open: call wxios_add_file with phys_out_filenames(iff)=',trim(phys_out_filenames(iff)) 325 endif325 ENDIF 326 326 CALL wxios_add_file(phys_out_filenames(iff),chtimestep(iff),lev_files(iff)) 327 327 ENDIF 328 328 329 329 !!! Declaration des axes verticaux de chaque fichier: 330 if (prt_level >= 10) then330 IF (prt_level >= 10) THEN 331 331 print*,'phys_output_open: Declare vertical axes for each file' 332 endif333 if (iff.le.6) then332 ENDIF 333 IF (iff.le.6) THEN 334 334 CALL wxios_add_vaxis("presnivs", & 335 335 levmax(iff) - levmin(iff) + 1, presnivs(levmin(iff):levmax(iff))) … … 340 340 CALL wxios_add_vaxis("Alt", & 341 341 levmax(iff) - levmin(iff) + 1, Alt) 342 else342 ELSE 343 343 ! NMC files 344 344 CALL wxios_add_vaxis("plev", & 345 345 levmax(iff) - levmin(iff) + 1, rlevSTD(levmin(iff):levmax(iff))) 346 endif346 ENDIF 347 347 #endif 348 348 … … 350 350 !!!!!!!!!!!!!!!!! Traitement dans le cas ou l'on veut stocker sur un domaine limite !! 351 351 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 352 IF (phys_out_regfkey(iff)) then352 IF (phys_out_regfkey(iff)) THEN 353 353 imin_ins=1 354 354 imax_ins=nbp_lon … … 357 357 358 358 ! correction abderr 359 doi=1,nbp_lon359 DO i=1,nbp_lon 360 360 WRITE(lunout,*)'io_lon(i)=',io_lon(i) 361 361 IF (io_lon(i).le.phys_out_lonmin(iff)) imin_ins=i 362 362 IF (io_lon(i).le.phys_out_lonmax(iff)) imax_ins=i+1 363 enddo364 365 doj=1,jjmp1363 ENDDO 364 365 DO j=1,jjmp1 366 366 WRITE(lunout,*)'io_lat(j)=',io_lat(j) 367 367 IF (io_lat(j).ge.phys_out_latmin(iff)) jmax_ins=j+1 368 368 IF (io_lat(j).ge.phys_out_latmax(iff)) jmin_ins=j 369 enddo369 ENDDO 370 370 371 371 WRITE(lunout,*)'On stoke le fichier histoire numero ',iff,' sur ', & … … 382 382 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 383 383 !IM fichiers stations 384 elseIF (clef_stations(iff)) THEN385 386 if (prt_level >= 10) then384 ELSE IF (clef_stations(iff)) THEN 385 386 IF (prt_level >= 10) THEN 387 387 WRITE(lunout,*)'phys_output_open: iff=',iff,' phys_out_filenames(iff)=',phys_out_filenames(iff) 388 endif388 ENDIF 389 389 390 390 CALL histbeg_phy_all(rlon,rlat,pim,tabij,ipt,jpt,plon,plat,plon_bounds,plat_bounds, & 391 391 phys_out_filenames(iff), & 392 392 itau_phy,zjulian,dtime,nhorim(iff),nid_files(iff)) 393 else393 ELSE 394 394 CALL histbeg_phy_all(phys_out_filenames(iff),itau_phy,zjulian,& 395 395 dtime,nhorim(iff),nid_files(iff)) 396 endif396 ENDIF 397 397 398 398 #ifndef CPP_IOIPSL_NO_OUTPUT 399 if (iff.le.6) then399 IF (iff.le.6) THEN 400 400 CALL histvert(nid_files(iff), "presnivs", "Vertical levels", "Pa", & 401 401 levmax(iff) - levmin(iff) + 1, & … … 411 411 levmax(iff) - levmin(iff) + 1,Alt,nvertAlt(iff)) 412 412 413 else413 ELSE 414 414 CALL histvert(nid_files(iff), "plev", "pressure", "Pa", & 415 415 levmax(iff) - levmin(iff) + 1, & 416 416 rlevSTD(levmin(iff):levmax(iff)), nvertm(iff), "down") 417 endif417 ENDIF 418 418 #endif 419 419 420 420 ENDIF ! clef_files 421 421 422 !CR: ajout d'une variable eau423 ! IF (nqtot>=3) THEN424 425 422 IF (nqtot>=nqo+1) THEN 426 ! DO iq=3,nqtot423 ! 427 424 DO iq=nqo+1,nqtot 428 425 iiq=niadv(iq) … … 507 504 ENDIF 508 505 509 510 506 ENDDO ! iff 511 507 … … 519 515 ecrit_ins = ecrit_files(6) 520 516 521 if (prt_level >= 10) then517 IF (prt_level >= 10) THEN 522 518 WRITE(lunout,*)'swaero_diag=',swaero_diag 523 519 WRITE(lunout,*)'phys_output_open: ends here' 524 endif 525 526 end SUBROUTINE phys_output_open 527 528 520 ENDIF 521 522 END SUBROUTINE phys_output_open 529 523 530 524 SUBROUTINE convers_timesteps(str,dtime,timestep) … … 548 542 WRITE(lunout,*) "ipos = ", ipos 549 543 WRITE(lunout,*) "il = ", il 550 if (ipos == 0) callabort_physic("convers_timesteps", "bad str", 1)544 IF (ipos == 0) CALL abort_physic("convers_timesteps", "bad str", 1) 551 545 read(str(1:ipos),*) ttt 552 546 WRITE(lunout,*)ttt … … 554 548 555 549 556 IF ( il == ipos ) then550 IF ( il == ipos ) THEN 557 551 type='day' 558 endif552 ENDIF 559 553 560 554 IF ( type == 'day'.or.type == 'days'.or.type == 'jours'.or.type == 'jour' ) timestep = ttt * dayseconde 561 IF ( type == 'mounths'.or.type == 'mth'.or.type == 'mois' ) then555 IF ( type == 'mounths'.or.type == 'mth'.or.type == 'mois' ) THEN 562 556 WRITE(lunout,*)'annee_ref,day_ref mon_len',annee_ref,day_ref,mth_len 563 557 timestep = ttt * dayseconde * mth_len 564 endif558 ENDIF 565 559 IF ( type == 'hours'.or.type == 'hr'.or.type == 'heurs') timestep = ttt * dayseconde / 24. 566 560 IF ( type == 'mn'.or.type == 'minutes' ) timestep = ttt * 60. … … 575 569 576 570 END MODULE phys_output_mod 577 578 -
LMDZ5/trunk/libf/phylmd/phys_output_write_mod.F90
r2690 r2704 6 6 USE phytrac_mod, ONLY : d_tr_cl, d_tr_th, d_tr_cv, d_tr_lessi_impa, & 7 7 d_tr_lessi_nucl, d_tr_insc, d_tr_bcscav, d_tr_evapls, d_tr_ls, & 8 d_tr_trsp, d_tr_sscav, d_tr_sat, d_tr_uscav 8 d_tr_trsp, d_tr_sscav, d_tr_sat, d_tr_uscav, flux_tr_dry 9 9 10 10 ! Author: Abderrahmane IDELKADI (original include file) … … 24 24 ! defined and initialised in phys_output_mod.F90 25 25 26 USE dimphy, only: klon, klev, klevp1 26 USE dimphy, ONLY: klon, klev, klevp1 27 USE infotrac, ONLY: nbtr 27 28 USE mod_phys_lmdz_para, ONLY: is_north_pole_phy,is_south_pole_phy 28 29 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 29 USE time_phylmdz_mod, only: day_step_phy, start_time, itau_phy30 USE phys_output_ctrlout_mod, only: o_phis, o_aire, is_ter, is_lic, is_oce, &30 USE time_phylmdz_mod, ONLY: day_step_phy, start_time, itau_phy 31 USE phys_output_ctrlout_mod, ONLY: o_phis, o_aire, is_ter, is_lic, is_oce, & 31 32 is_ave, is_sic, o_contfracATM, o_contfracOR, & 32 33 o_aireTER, o_flat, o_slp, o_ptstar, o_pt0, o_tsol, & … … 163 164 o_dtr_lessi_impa, o_dtr_lessi_nucl, & 164 165 o_dtr_insc, o_dtr_bcscav, o_dtr_evapls, & 165 o_dtr_ls, o_dtr_trsp, o_dtr_sscav, &166 o_dtr_ls, o_dtr_trsp, o_dtr_sscav, o_dtr_dry, & 166 167 o_dtr_sat, o_dtr_uscav, o_trac_cum, o_du_gwd_rando, o_dv_gwd_rando, & 167 168 o_ustr_gwd_hines,o_vstr_gwd_hines,o_ustr_gwd_rando,o_vstr_gwd_rando, & … … 183 184 184 185 #ifdef CPP_StratAer 185 USE phys_output_ctrlout_mod, only: &186 USE phys_output_ctrlout_mod, ONLY: & 186 187 o_sulf_convert, o_sulf_nucl, o_sulf_cond_evap, o_ocs_convert, & 187 188 o_sfluxaer, o_R2SO4, o_OCS_lifetime, o_SO2_lifetime, & … … 191 192 #endif 192 193 193 USE phys_state_var_mod, only: pctsrf, paire_ter, rain_fall, snow_fall, &194 USE phys_state_var_mod, ONLY: pctsrf, paire_ter, rain_fall, snow_fall, & 194 195 qsol, z0m, z0h, fevap, agesno, & 195 196 nday_rain, rain_con, snow_con, & … … 218 219 vphiSTD, wTSTD, u2STD, v2STD, T2STD, missing_val_nf90 219 220 220 USE phys_local_var_mod, only: zxfluxlat, slp, ptstar, pt0, zxtsol, zt2m, &221 USE phys_local_var_mod, ONLY: zxfluxlat, slp, ptstar, pt0, zxtsol, zt2m, & 221 222 t2m_min_mon, t2m_max_mon, evap, & 222 223 l_mixmin,l_mix, & … … 282 283 283 284 #ifdef CPP_StratAer 284 USE phys_local_var_mod, only: &285 USE phys_local_var_mod, ONLY: & 285 286 sulf_convert, sulf_nucl, sulf_cond_evap, ocs_convert, & 286 287 sfluxaer, R2SO4, OCS_lifetime, SO2_lifetime, & … … 290 291 #endif 291 292 292 USE phys_output_var_mod, only: vars_defined, snow_o, zfra_o, bils_diss, &293 USE phys_output_var_mod, ONLY: vars_defined, snow_o, zfra_o, bils_diss, & 293 294 bils_ec,bils_ech, bils_tke, bils_kinetic, bils_latent, bils_enthalp, & 294 295 itau_con, nfiles, clef_files, nid_files, & … … 309 310 alt_tropo 310 311 311 USE ocean_slab_mod, only: nslay, tslab, slab_bils, slab_bilg, tice, &312 USE ocean_slab_mod, ONLY: nslay, tslab, slab_bils, slab_bilg, tice, & 312 313 seaice, slab_ekman,slab_hdiff, dt_ekman, dt_hdiff 313 USE pbl_surface_mod, only: snow314 USE indice_sol_mod, only: nbsrf315 USE infotrac_phy, only: nqtot, nqo, type_trac316 USE geometry_mod, only: cell_area317 USE surface_data, only: type_ocean, version_ocean, ok_veget, ok_snow318 ! USE aero_mod, only: naero_spc319 USE aero_mod, only: naero_tot, id_STRAT_phy320 USE ioipsl, only: histend, histsync321 USE iophy, only: set_itau_iophy, histwrite_phy322 USE netcdf, only: nf90_fill_real314 USE pbl_surface_mod, ONLY: snow 315 USE indice_sol_mod, ONLY: nbsrf 316 USE infotrac_phy, ONLY: nqtot, nqo, type_trac, tname, niadv 317 USE geometry_mod, ONLY: cell_area 318 USE surface_data, ONLY: type_ocean, version_ocean, ok_veget, ok_snow 319 ! USE aero_mod, ONLY: naero_spc 320 USE aero_mod, ONLY: naero_tot, id_STRAT_phy 321 USE ioipsl, ONLY: histend, histsync 322 USE iophy, ONLY: set_itau_iophy, histwrite_phy 323 USE netcdf, ONLY: nf90_fill_real 323 324 USE print_control_mod, ONLY: prt_level,lunout 324 325 … … 326 327 #ifdef CPP_XIOS 327 328 ! ug Pour les sorties XIOS 328 USE xios , ONLY: xios_update_calendar329 USE wxios, only: wxios_closedef, missing_val330 #endif 331 USE phys_cal_mod, only: mth_len329 USE xios 330 USE wxios, ONLY: wxios_closedef, missing_val 331 #endif 332 USE phys_cal_mod, ONLY : mth_len 332 333 333 334 #ifdef CPP_RRTM … … 336 337 337 338 IMPLICIT NONE 338 339 339 340 340 INCLUDE "clesphys.h" … … 364 364 ! Local 365 365 INTEGER :: itau_w 366 INTEGER :: i, iinit, iinitend=1, iff, iq, nsrf, k, ll, naero366 INTEGER :: i, iinit, iinitend=1, iff, iq, iiq, nsrf, k, ll, naero 367 367 REAL, DIMENSION (klon) :: zx_tmp_fi2d 368 368 REAL, DIMENSION (klon,klev) :: zx_tmp_fi3d, zpt_conv … … 379 379 INTEGER ISW 380 380 CHARACTER*1 ch1 381 CHARACTER*20 varname 382 383 #ifdef CPP_XIOS 384 TYPE(xios_fieldgroup) :: group_handle 385 TYPE(xios_field) :: child 386 #endif 381 387 382 388 ! On calcul le nouveau tau: … … 390 396 iinitend = 1 391 397 ENDIF 398 399 #ifdef CPP_XIOS 400 #ifdef CPP_StratAer 401 IF (.NOT.vars_defined) THEN 402 !On ajoute les variables 3D traceurs par l interface fortran 403 CALL xios_get_handle("fields_strataer_trac_3D", group_handle) 404 ! On boucle sur les traceurs pour les ajouter au groupe puis fixer les attributs 405 DO iq=nqo+1, nqtot 406 iiq=niadv(iq) 407 varname=trim(tname(iiq)) 408 WRITE (lunout,*) 'XIOS var=', nqo, iq, varname 409 CALL xios_add_child(group_handle, child, varname) 410 CALL xios_set_attr(child, name=varname, unit="kg kg-1") 411 varname='d'//trim(tname(iiq))//'_vdf' 412 CALL xios_add_child(group_handle, child, varname) 413 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 414 varname='d'//trim(tname(iiq))//'_the' 415 CALL xios_add_child(group_handle, child, varname) 416 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 417 varname='d'//trim(tname(iiq))//'_con' 418 CALL xios_add_child(group_handle, child, varname) 419 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 420 varname='d'//trim(tname(iiq))//'_lessi_impa' 421 CALL xios_add_child(group_handle, child, varname) 422 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 423 varname='d'//trim(tname(iiq))//'_lessi_nucl' 424 CALL xios_add_child(group_handle, child, varname) 425 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 426 varname='d'//trim(tname(iiq))//'_insc' 427 CALL xios_add_child(group_handle, child, varname) 428 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 429 varname='d'//trim(tname(iiq))//'_bcscav' 430 CALL xios_add_child(group_handle, child, varname) 431 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 432 varname='d'//trim(tname(iiq))//'_evapls' 433 CALL xios_add_child(group_handle, child, varname) 434 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 435 varname='d'//trim(tname(iiq))//'_ls' 436 CALL xios_add_child(group_handle, child, varname) 437 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 438 varname='d'//trim(tname(iiq))//'_trsp' 439 CALL xios_add_child(group_handle, child, varname) 440 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 441 varname='d'//trim(tname(iiq))//'_sscav' 442 CALL xios_add_child(group_handle, child, varname) 443 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 444 varname='d'//trim(tname(iiq))//'_sat' 445 CALL xios_add_child(group_handle, child, varname) 446 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 447 varname='d'//trim(tname(iiq))//'_uscav' 448 CALL xios_add_child(group_handle, child, varname) 449 CALL xios_set_attr(child, name=varname, unit="kg kg-1 s-1") 450 ENDDO 451 !On ajoute les variables 2D traceurs par l interface fortran 452 CALL xios_get_handle("fields_strataer_trac_2D", group_handle) 453 ! On boucle sur les traceurs pour les ajouter au groupe puis fixer les attributs 454 DO iq=nqo+1, nqtot 455 iiq=niadv(iq) 456 varname='cum'//trim(tname(iiq)) 457 WRITE (lunout,*) 'XIOS var=', iq, varname 458 CALL xios_add_child(group_handle, child, varname) 459 CALL xios_set_attr(child, name=varname, unit="kg m-2") 460 varname='cumd'//trim(tname(iiq))//'_dry' 461 CALL xios_add_child(group_handle, child, varname) 462 CALL xios_set_attr(child, name=varname, unit="kg m-2 s-1") 463 ENDDO 464 ENDIF 465 #endif 466 #endif 392 467 393 468 ! ug la boucle qui suit ne sert qu'une fois, pour l'initialisation, sinon il n'y a toujours qu'un seul passage: … … 1785 1860 #endif 1786 1861 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1787 1788 DO iq=nqo+1, nqtot1862 IF (nqtot.GE.nqo+1) THEN 1863 DO iq=nqo+1, nqtot 1789 1864 IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag') THEN 1865 !--3D fields 1790 1866 CALL histwrite_phy(o_trac(iq-nqo), tr_seri(:,:,iq-nqo)) 1791 1867 CALL histwrite_phy(o_dtr_vdf(iq-nqo),d_tr_cl(:,:,iq-nqo)) … … 1802 1878 CALL histwrite_phy(o_dtr_sat(iq-nqo),d_tr_sat(:,:,iq-nqo)) 1803 1879 CALL histwrite_phy(o_dtr_uscav(iq-nqo),d_tr_uscav(:,:,iq-nqo)) 1880 !--2D fields 1881 CALL histwrite_phy(o_dtr_dry(iq-nqo), flux_tr_dry(:,iq-nqo)) 1804 1882 zx_tmp_fi2d=0. 1805 1883 IF (vars_defined) THEN … … 1821 1899 ndex2d = 0 1822 1900 ndex3d = 0 1823 1824 1901 ENDIF ! clef_files 1825 1902 ENDDO ! iff … … 1832 1909 !$OMP BARRIER 1833 1910 vars_defined = .TRUE. 1834 ENDIF 1911 1912 ENDIF !--.NOT.vars_defined 1835 1913 1836 1914 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.