Ignore:
Timestamp:
10/17/17 23:11:14 (7 years ago)
Author:
dubos
Message:

devel : finalize diagnostics of tracer fluxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/time/timeloop_gcm.f90

    r584 r592  
    182182    REAL(rstd),POINTER :: rhodz(:,:), mass(:,:), ps(:) 
    183183 
    184     INTEGER :: ind 
    185     INTEGER :: it,i,j,l,n,  stage 
    186     LOGICAL :: fluxt_zero(ndomain) ! set to .TRUE. to start accumulating fluxes in time 
     184    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 
    187187    LOGICAL, PARAMETER :: check_rhodz=.FALSE. 
    188188    INTEGER :: start_clock, stop_clock, rate_clock 
     
    211211 
    212212    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 
    213218 
    214219    CALL check_conserve(f_ps,f_dps,f_u,f_theta_rhodz,f_phis,itau0)   
     
    299304        
    300305       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 
    302308          fluxt_zero=.TRUE. 
    303309          ! FIXME : check that rhodz is consistent with ps 
Note: See TracChangeset for help on using the changeset viewer.