- Timestamp:
- 06/18/19 14:17:55 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/src/diagnostics/compute_temperature.F90
r915 r916 1 1 MODULE compute_temperature_mod 2 USE earth_const, ONLY : cpp, cppv, kappa, Rd, Rv, preff, Treff, &3 caldyn_thermo, physics_thermo, &4 thermo_theta, thermo_entropy, thermo_ moist, thermo_fake_moist2 USE earth_const, ONLY : cpp, cppv, kappa, Rd, Rv, preff, Treff, nu, & 3 caldyn_thermo, physics_thermo, thermo_fake_moist, & 4 thermo_theta, thermo_entropy, thermo_variable_Cp, thermo_moist 5 5 USE grid_param 6 6 IMPLICIT NONE … … 79 79 temp_ik = Treff*exp((theta_ik + Rd*log(p_ik/preff))/cpp) 80 80 {% endcall %} 81 CASE(thermo_variable_Cp) 82 {% call loop_compute_temperature() %} 83 Cp_ik = nu*( theta_ik + Rd*log(p_ik/preff) ) 84 temp_ik = Treff* (Cp_ik/cpp)**(1./nu) 85 {% endcall %} 81 86 CASE(thermo_moist) 82 87 {% call loop_compute_temperature() %} … … 95 100 REAL(rstd),INTENT(IN) :: q(llm, primal_num, nqtot) 96 101 REAL(rstd),INTENT(INOUT) :: temp(llm, primal_num) 97 REAL(rstd) :: p_ik, theta_ik, temp_ik, qv, chi, Rmix 102 REAL(rstd) :: p_ik, theta_ik, temp_ik, qv, chi, Rmix, Cp_ik 98 103 DECLARE_INDICES 99 104 #include "../kernels_unst/compute_temperature.k90" … … 107 112 REAL(rstd),INTENT(INOUT) :: temp(iim*jjm,llm) 108 113 109 REAL(rstd) :: p_ik, theta_ik, temp_ik, qv, chi, Rmix 114 REAL(rstd) :: p_ik, theta_ik, temp_ik, qv, chi, Rmix, Cp_ik 110 115 INTEGER :: ij,l 111 116 #include "../kernels_hex/compute_temperature.k90"
Note: See TracChangeset
for help on using the changeset viewer.