Ignore:
Timestamp:
02/09/13 02:01:07 (11 years ago)
Author:
dubos
Message:

Some steps towards coupling with transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/timeloop_gcm.f90

    r131 r132  
    1717!  TYPE(t_field),POINTER :: f_theta(:) 
    1818  TYPE(t_field),POINTER :: f_q(:) 
    19   TYPE(t_field),POINTER :: f_dtheta(:) 
     19  TYPE(t_field),POINTER :: f_dtheta(:), f_rhodz(:) 
    2020  TYPE(t_field),POINTER :: f_ps(:),f_psm1(:), f_psm2(:) 
    2121  TYPE(t_field),POINTER :: f_u(:),f_um1(:),f_um2(:) 
     
    6969! Tracers 
    7070  CALL allocate_field(f_q,field_t,type_real,llm,nqtot) 
     71  CALL allocate_field(f_rhodz,field_t,type_real,llm) 
    7172 
    7273  scheme='runge_kutta' 
     
    119120  CALL transfert_request(f_q,req_i1)  
    120121 
     122  CALL advect_tracer_rhodz(f_ps, f_rhodz)  ! save rhodz for transport scheme before dynamics update ps 
     123 
    121124  DO it=0,itaumax 
    122125 
     
    130133 
    131134    DO stage=1,nb_stage 
     135!       CALL caldyn((stage==1) .AND. (MOD(it,itau_out)==0), & 
     136!            f_phis,f_ps,f_theta_rhodz,f_u, f_q, & 
     137!            f_Fe, f_W, f_dps, f_dtheta_rhodz, f_du) 
    132138       CALL caldyn((stage==1) .AND. (MOD(it,itau_out)==0), & 
    133             f_phis,f_ps,f_theta_rhodz,f_u, f_q, f_dps, f_dtheta_rhodz, f_du) 
     139            f_phis,f_ps,f_theta_rhodz,f_u, f_q, & 
     140            f_dps, f_dtheta_rhodz, f_du) 
    134141       SELECT CASE (TRIM(scheme)) 
    135142       CASE('euler') 
     
    161168    CALL euler_scheme(.FALSE.) 
    162169 
    163 !    CALL advect_tracer(f_ps,f_u,f_q) 
     170!    CALL advect_tracer(f_Fe,f_W,f_u, f_q,f_rhodz)  ! update q and rhodz after RK step 
    164171!    CALL physics(it,f_phis, f_ps, f_theta_rhodz, f_u, f_q) 
    165172    ENDDO 
Note: See TracChangeset for help on using the changeset viewer.