Changeset 3725 for trunk/LMDZ.GENERIC/libf/aeronostd
- Timestamp:
- Apr 15, 2025, 9:34:31 AM (4 months ago)
- Location:
- trunk/LMDZ.GENERIC/libf/aeronostd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/aeronostd/calchim_asis.F90
r3312 r3725 10 10 USE comcstfi_mod 11 11 use callkeys_mod 12 use time_phylmdz_mod, only: ecritphy, iphysiq ! output rate set by ecritphy12 use time_phylmdz_mod, only: diagfi_output_rate ! output rate 13 13 use types_asis, only: v_phot_3d, jlabel, nb_phot_hv_max 14 14 use chimiedata_h … … 133 133 integer :: iter(nlayer) ! Number of chemical iterations 134 134 ! within one physical timestep 135 integer :: icount135 integer,intent(in) :: icount ! physics iteration number 136 136 ! for output: 137 137 … … 285 285 ig, zzlay, zzlev, zdens, zycol, ptimestep) 286 286 surface_flux2(ig,:) = surface_flux2(ig,:) + surface_flux(ig,:) 287 if (ngrid==1) then 288 if(mod(icount,ecritphy).eq.0) then 289 surface_flux2(ig,:) = surface_flux2(ig,:)/float(ecritphy) 290 endif 291 else 292 if(mod(icount*iphysiq,ecritphy).eq.0) then 293 surface_flux2(ig,:) = surface_flux2(ig,:)*iphysiq/float(ecritphy) 294 endif 287 if(mod(icount,diagfi_output_rate).eq.0) then 288 !note that surface_flux2(:,:) is reset every diagfi_output_rate 289 surface_flux2(ig,:) = surface_flux2(ig,:)/float(diagfi_output_rate) 295 290 endif 296 end if 291 end if ! of if (depos) 297 292 298 293 !======================================================================= … … 405 400 end do 406 401 ! Restart flux average 407 if (ngrid == 1) then 408 if(mod(icount,ecritphy).eq.0) then 409 surface_flux2(:,:) = 0.0 410 endif 411 else 412 if(mod(icount*iphysiq,ecritphy).eq.0) then 413 surface_flux2(:,:) = 0.0 414 endif 402 if(mod(icount,diagfi_output_rate).eq.0) then 403 surface_flux2(:,:) = 0.0 415 404 endif 416 405 endif ! end depos … … 424 413 425 414 end if ! of if (output) 426 427 return428 415 429 416 -
trunk/LMDZ.GENERIC/libf/aeronostd/writediagspecUV.F
r3309 r3725 30 30 & nbp_lon, nbp_lat, grid_type, 31 31 & unstructured 32 use time_phylmdz_mod, only: ecritphy, iphysiq, day_step, day_ini 32 use time_phylmdz_mod, only: diagfi_output_rate, dtphys, daysec 33 use time_phylmdz_mod, only: day_ini 33 34 34 35 implicit none … … 48 49 ! real dx0 49 50 50 integer i rythme51 integer isample 51 52 integer ierr 52 53 integer iq … … 87 88 !output frequency 88 89 89 i rythme = ecritphy! output with ecritphy frequency90 !EM+JL if the spe tra need to be output more frequently, need to define a ecritSpec...91 ! irythme = iphysiq ! sortie a tous les pas physique90 isample = diagfi_output_rate ! output with ecritphy frequency 91 !EM+JL if the spectra need to be output more frequently, need to define a 92 ! diagspec_output_rate... 92 93 93 94 !*************************************************************** … … 173 174 !------------------------------------------------------------------------ 174 175 if (nom.eq.firstnom) then 175 zitau = zitau + iphysiq176 zitau = zitau + 1 176 177 end if 177 178 … … 180 181 !-------------------------------------------------------- 181 182 182 if ( MOD(zitau+1,i rythme) .eq.0.) then183 if ( MOD(zitau+1,isample) .eq.0.) then 183 184 184 185 ! Compute/write/extend 'Time' coordinate (date given in days) … … 193 194 ntime=ntime+1 ! increment # of stored time steps 194 195 ! compute corresponding date (in days and fractions thereof) 195 date= float (zitau +1)/float (day_step)196 date=(zitau +1)*(dtphys/daysec) 196 197 197 198 if (is_master) then … … 313 314 endif ! of if (dimpx.eq.3) 314 315 315 endif ! of if ( MOD(zitau+1,i rythme) .eq.0.)316 endif ! of if ( MOD(zitau+1,isample) .eq.0.) 316 317 317 318 ! Close the NetCDF file
Note: See TracChangeset
for help on using the changeset viewer.