Changeset 592 for codes/icosagcm/devel/src/time/timeloop_gcm.f90
- Timestamp:
- 10/17/17 23:11:14 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/src/time/timeloop_gcm.f90
r584 r592 182 182 REAL(rstd),POINTER :: rhodz(:,:), mass(:,:), ps(:) 183 183 184 INTEGER :: ind185 INTEGER :: i t,i,j,l,n, stage186 LOGICAL :: fluxt_zero(ndomain) ! set to .TRUE. to start accumulating fluxes in time184 REAL(rstd) :: adv_over_out ! ratio itau_adv/itau_out 185 INTEGER :: ind, it,i,j,l,n, stage 186 LOGICAL :: fluxt_zero(ndomain) ! set to .TRUE. to start accumulating mass fluxes in time 187 187 LOGICAL, PARAMETER :: check_rhodz=.FALSE. 188 188 INTEGER :: start_clock, stop_clock, rate_clock … … 211 211 212 212 IF(positive_theta) CALL copy_theta_to_q(f_theta_rhodz,f_rhodz,f_q) 213 IF(diagflux_on) THEN 214 adv_over_out = itau_adv*(1./itau_out) 215 ELSE 216 adv_over_out = 0. 217 END IF 213 218 214 219 CALL check_conserve(f_ps,f_dps,f_u,f_theta_rhodz,f_phis,itau0) … … 299 304 300 305 IF(MOD(it,itau_adv)==0) THEN 301 CALL advect_tracer(diagflux_on, f_hfluxt,f_wfluxt,f_u, f_q,f_rhodz,f_qfluxt) ! update q and rhodz after RK step 306 CALL advect_tracer(f_hfluxt,f_wfluxt,f_u, f_q,f_rhodz, & ! update q and rhodz after RK step 307 adv_over_out, f_masst,f_qmasst,f_massfluxt, f_qfluxt) ! accumulate mass and fluxes if diagflux_on 302 308 fluxt_zero=.TRUE. 303 309 ! FIXME : check that rhodz is consistent with ps
Note: See TracChangeset
for help on using the changeset viewer.