Ignore:
Timestamp:
07/15/19 23:21:31 (5 years ago)
Author:
dubos
Message:

devel : fixed diagnosis of hydrostatic pressure for Lagrangian vertical coordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/dynamics/compute_geopot.F90

    r937 r955  
    1717 
    1818#ifdef BEGIN_DYSL 
    19  
    20 #define THECELL {{ thecell }} 
    2119 
    2220{# ---------------- macro to generate code computing pressure top-down --------------- 
     
    5957 
    6058#define END_GEOPOT {% endcall %} 
     59 
     60#define THECELL {{ thecell }} 
     61 
     62KERNEL(compute_hydrostatic_pressure) 
     63  SELECT CASE(caldyn_thermo) 
     64  CASE(thermo_boussinesq) 
     65    ! use hydrostatic balance with theta*rhodz to find pk (=Lagrange multiplier=pressure) 
     66    BALANCE( theta_rhodz(THECELL,1) ) 
     67  CASE(thermo_theta, thermo_entropy, thermo_variable_Cp) 
     68    BALANCE( rhodz(THECELL) ) 
     69  CASE(thermo_moist) 
     70    BALANCE( (rhodz(THECELL)+theta_rhodz(THECELL,2)) ) 
     71  END SELECT 
     72END_BLOCK 
    6173 
    6274KERNEL(compute_geopot) 
Note: See TracChangeset for help on using the changeset viewer.