- Timestamp:
- Jul 19, 2024, 5:41:58 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/lmdz_thermcell_dq.F90
r4590 r5082 57 57 zzm=masse(ig,k)/ptimestep 58 58 cfl=max(cfl,fm(ig,k)/zzm) 59 if (entr(ig,k) .gt.zzm) then59 if (entr(ig,k)>zzm) then 60 60 print*,'entr*dt>m,1',k,entr(ig,k)*ptimestep,masse(ig,k) 61 61 abort_message = 'entr dt > m, 1st' … … 68 68 69 69 70 if (prt_level .ge.1) print*,'Q2 THERMCEL_DQ 0'70 if (prt_level>=1) print*,'Q2 THERMCEL_DQ 0' 71 71 72 72 ! calcul du detrainement … … 76 76 ! print*,'Q2 DQ ',detr(ig,k),fm(ig,k),entr(ig,k) 77 77 !test 78 if (detr(ig,k) .lt.0.) then78 if (detr(ig,k)<0.) then 79 79 entr(ig,k)=entr(ig,k)-detr(ig,k) 80 80 detr(ig,k)=0. … … 82 82 ! s 'f+1=',fm(ig,k+1),'e=',entr(ig,k),'d=',detr(ig,k) 83 83 endif 84 if (fm(ig,k+1) .lt.0.) then84 if (fm(ig,k+1)<0.) then 85 85 ! print*,'fm2<0!!!' 86 86 endif 87 if (entr(ig,k) .lt.0.) then87 if (entr(ig,k)<0.) then 88 88 ! print*,'entr2<0!!!' 89 89 endif … … 98 98 do k=2,nlay 99 99 do ig=1,ngrid 100 if ((fm(ig,k+1)+detr(ig,k))*ptimestep .gt.&100 if ((fm(ig,k+1)+detr(ig,k))*ptimestep> & 101 101 & 1.e-5*masse(ig,k)) then 102 102 qa(ig,k)=(fm(ig,k)*qa(ig,k-1)+entr(ig,k)*q(ig,k)) & … … 105 105 qa(ig,k)=q(ig,k) 106 106 endif 107 if (qa(ig,k) .lt.0.) then107 if (qa(ig,k)<0.) then 108 108 ! print*,'qa<0!!!' 109 109 endif 110 if (q(ig,k) .lt.0.) then110 if (q(ig,k)<0.) then 111 111 ! print*,'q<0!!!' 112 112 endif … … 200 200 zzm=masse(ig,k)/ptimestep 201 201 cfl=max(cfl,fm(ig,k)/zzm) 202 if (entr(ig,k) .gt.zzm) then202 if (entr(ig,k)>zzm) then 203 203 print*,'entr*dt>m,2',k,entr(ig,k)*ptimestep,masse(ig,k) 204 204 abort_message = 'entr dt > m, 2nd' … … 223 223 224 224 do iter=1,niter 225 if (prt_level .ge.1) print*,'Q2 THERMCEL_DQ 0'225 if (prt_level>=1) print*,'Q2 THERMCEL_DQ 0' 226 226 227 227 ! calcul du detrainement … … 231 231 ! print*,'Q2 DQ ',detr(ig,k),fm(ig,k),entr(ig,k) 232 232 !test 233 if (detr(ig,k) .lt.0.) then233 if (detr(ig,k)<0.) then 234 234 entr(ig,k)=entr(ig,k)-detr(ig,k) 235 235 detr(ig,k)=0. … … 237 237 ! s 'f+1=',fm(ig,k+1),'e=',entr(ig,k),'d=',detr(ig,k) 238 238 endif 239 if (fm(ig,k+1) .lt.0.) then239 if (fm(ig,k+1)<0.) then 240 240 ! print*,'fm2<0!!!' 241 241 endif 242 if (entr(ig,k) .lt.0.) then242 if (entr(ig,k)<0.) then 243 243 ! print*,'entr2<0!!!' 244 244 endif … … 253 253 do k=2,nlay 254 254 do ig=1,ngrid 255 if ((fm(ig,k+1)+detr(ig,k))*ztimestep .gt.&255 if ((fm(ig,k+1)+detr(ig,k))*ztimestep> & 256 256 & 1.e-5*masse(ig,k)) then 257 257 qa(ig,k)=(fm(ig,k)*qa(ig,k-1)+entr(ig,k)*q(ig,k)) & … … 260 260 qa(ig,k)=q(ig,k) 261 261 endif 262 if (qa(ig,k) .lt.0.) then262 if (qa(ig,k)<0.) then 263 263 ! print*,'qa<0!!!' 264 264 endif 265 if (q(ig,k) .lt.0.) then265 if (q(ig,k)<0.) then 266 266 ! print*,'q<0!!!' 267 267 endif … … 292 292 #endif 293 293 294 if (wqd(ig,k) .lt.0.) then294 if (wqd(ig,k)<0.) then 295 295 ! print*,'wqd<0!!!' 296 296 endif
Note: See TracChangeset
for help on using the changeset viewer.