Changeset 2109 for trunk/LMDZ.TITAN/libf/muphytitan/mm_microphysic.f90
- Timestamp:
- Mar 4, 2019, 4:03:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/mm_microphysic.f90
r1926 r2109 111 111 ! add temporary aerosols tendencies (-> m-3) 112 112 dm0a_f = dm0a_f + zdm0a_f ; dm3a_f = dm3a_f + zdm3a_f 113 ! reverse directlyclouds tendencies (-> m-2)113 ! reverse clouds tendencies (-> m-2) 114 114 dm0n = dm0n(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 115 115 dm3n = dm3n(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 116 ! sanity check for clouds tendencies117 WHERE (mm_m0ccn+dm0n < 0) ; dm0n = -mm_m0ccn ; END WHERE118 WHERE (mm_m3ccn+dm3n < 0) ; dm3n = -mm_m3ccn ; END WHERE119 116 DO i=1,mm_nesp 120 117 dm3i(:,i) = dm3i(mm_nla:1:-1,i) * mm_dzlev(mm_nla:1:-1) 121 WHERE (mm_m3ice+dm3i < 0) ; dm3i = -mm_m3ice ; END WHERE122 118 dgazs(:,i) = dgazs(mm_nla:1:-1,i) 123 ! no sanity check for gazs, let's prey.124 119 ENDDO 125 120 ELSE … … 131 126 dm0a_f = dm0a_f(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 132 127 dm3a_f = dm3a_f(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 133 ! sanity check134 WHERE (mm_m0aer_s+dm0a_s < 0) ; dm0a_s = -mm_m0aer_s ; END WHERE135 WHERE (mm_m3aer_s+dm3a_f < 0) ; dm3a_s = -mm_m3aer_s ; END WHERE136 WHERE (mm_m0aer_f+dm0a_f < 0) ; dm0a_f = -mm_m0aer_f ; END WHERE137 WHERE (mm_m3aer_f+dm3a_f < 0) ; dm3a_f = -mm_m3aer_f ; END WHERE138 128 139 129 RETURN … … 170 160 dm0a_f = dm0a_f(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 171 161 dm3a_f = dm3a_f(mm_nla:1:-1) * mm_dzlev(mm_nla:1:-1) 172 ! sanity check173 WHERE (mm_m0aer_s+dm0a_s < 0) ; dm0a_s = -mm_m0aer_s ; END WHERE174 WHERE (mm_m3aer_s+dm3a_f < 0) ; dm3a_s = -mm_m3aer_s ; END WHERE175 WHERE (mm_m0aer_f+dm0a_f < 0) ; dm0a_f = -mm_m0aer_f ; END WHERE176 WHERE (mm_m3aer_f+dm3a_f < 0) ; dm3a_f = -mm_m3aer_f ; END WHERE177 162 RETURN 178 163 END FUNCTION muphys_nocld
Note: See TracChangeset
for help on using the changeset viewer.