Changeset 955 for codes/icosagcm/devel/src/dynamics/compute_geopot.F90
- Timestamp:
- 07/15/19 23:21:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/src/dynamics/compute_geopot.F90
r937 r955 17 17 18 18 #ifdef BEGIN_DYSL 19 20 #define THECELL {{ thecell }}21 19 22 20 {# ---------------- macro to generate code computing pressure top-down --------------- … … 59 57 60 58 #define END_GEOPOT {% endcall %} 59 60 #define THECELL {{ thecell }} 61 62 KERNEL(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 72 END_BLOCK 61 73 62 74 KERNEL(compute_geopot)
Note: See TracChangeset
for help on using the changeset viewer.