Ignore:
Timestamp:
05/28/16 00:32:21 (8 years ago)
Author:
dubos
Message:

Infrastructure for multiple dynamical tracers - tested with JW06 and moist baroclinic wave

File:
1 edited

Legend:

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

    r362 r387  
    133133     
    134134    REAL(rstd),POINTER :: ps(:), dps(:) 
    135     REAL(rstd),POINTER :: mass(:,:), theta_rhodz(:,:), dtheta_rhodz(:,:) 
     135    REAL(rstd),POINTER :: mass(:,:), theta_rhodz(:,:,:), dtheta_rhodz(:,:,:) 
    136136    REAL(rstd),POINTER :: u(:,:), du(:,:), hflux(:,:), wflux(:,:) 
    137137    REAL(rstd),POINTER :: qu(:,:) 
     
    194194          qu=f_qu(ind) 
    195195          qv=f_qv(ind) 
    196           CALL compute_pvort(ps,u,theta_rhodz, mass,theta,qu,qv) ! COM00 COM01 COM02 
     196          CALL compute_pvort(ps,u,theta_rhodz(:,:,1), mass,theta,qu,qv) ! COM00 COM01 COM02 
    197197       ENDDO 
    198198!       CALL checksum(f_mass) 
     
    208208          ps=f_ps(ind) 
    209209          u=f_u(ind) 
    210           theta_rhodz=f_theta_rhodz(ind) 
    211210          mass=f_mass(ind) 
    212211          theta = f_theta(ind) 
     
    219218          dtheta_rhodz=f_dtheta_rhodz(ind) 
    220219          du=f_du(ind) 
    221           CALL compute_caldyn_horiz(u,mass,qu,theta,pk,geopot, hflux,convm,dtheta_rhodz,du) 
     220          CALL compute_caldyn_horiz(u,mass,qu,theta,pk,geopot, hflux,convm,dtheta_rhodz(:,:,1),du) 
    222221          IF(caldyn_eta==eta_mass) THEN 
    223222             wflux=f_wflux(ind) 
    224223             wwuu=f_wwuu(ind) 
    225224             dps=f_dps(ind) 
    226              CALL compute_caldyn_vert(u,theta,mass,convm, wflux,wwuu, dps, dtheta_rhodz, du) 
     225             CALL compute_caldyn_vert(u,theta,mass,convm, wflux,wwuu, dps, dtheta_rhodz(:,:,1), du) 
    227226          END IF 
    228227       ENDDO        
     
    245244          qu=f_qu(ind) 
    246245          qv=f_qv(ind) 
    247           CALL compute_pvort(ps,u,theta_rhodz, mass,theta,qu,qv) 
     246          CALL compute_pvort(ps,u,theta_rhodz(:,:,1), mass,theta,qu,qv) 
    248247          pk = f_pk(ind) 
    249248          geopot = f_geopot(ind)   
     
    253252          dtheta_rhodz=f_dtheta_rhodz(ind) 
    254253          du=f_du(ind) 
    255           CALL compute_caldyn_horiz(u,mass,qu,theta,pk,geopot, hflux,convm,dtheta_rhodz,du) 
     254          CALL compute_caldyn_horiz(u,mass,qu,theta,pk,geopot, hflux,convm,dtheta_rhodz(:,:,1),du) 
    256255          IF(caldyn_eta==eta_mass) THEN 
    257256             wflux=f_wflux(ind) 
Note: See TracChangeset for help on using the changeset viewer.