Changeset 1985 for LMDZ5/trunk/libf/phylmd
- Timestamp:
- Feb 19, 2014, 6:53:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/thermcell_dq.F90
r1943 r1985 40 40 41 41 ! Old explicite scheme 42 if (impl ==-1) then43 call thermcell_dq_o(ngrid,nlay, ptimestep,fm,entr, &42 if (impl<=-1) then 43 call thermcell_dq_o(ngrid,nlay,impl,ptimestep,fm,entr, & 44 44 & masse,q,dq,qa,lev_out) 45 45 return … … 124 124 else 125 125 do k=nlay-1,1,-1 126 q(:,k)=(masse(:,k)*q(:,k)/ptimestep+fqa(:,k)-fqa(:,k+1)+fm(:,k+1)*q(:,k+1)) & 127 & /(fm(:,k)+masse(:,k)/ptimestep) 126 ! FH debut de modif : le calcul ci dessous modifiait numériquement 127 ! la concentration quand le flux de masse etait nul car on divisait 128 ! puis multipliait par masse/ptimestep. 129 ! q(:,k)=(masse(:,k)*q(:,k)/ptimestep+fqa(:,k)-fqa(:,k+1)+fm(:,k+1)*q(:,k+1)) & 130 ! & /(fm(:,k)+masse(:,k)/ptimestep) 131 q(:,k)=(q(:,k)+ptimestep/masse(:,k)*(fqa(:,k)-fqa(:,k+1)+fm(:,k+1)*q(:,k+1))) & 132 & /(1.+fm(:,k)*ptimestep/masse(:,k)) 133 ! FH fin de modif. 128 134 enddo 129 135 endif … … 144 150 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 145 151 146 subroutine thermcell_dq_o(ngrid,nlay, ptimestep,fm,entr, &152 subroutine thermcell_dq_o(ngrid,nlay,impl,ptimestep,fm,entr, & 147 153 & masse,q,dq,qa,lev_out) 148 154 implicit none … … 157 163 !======================================================================= 158 164 159 integer ngrid,nlay 165 integer ngrid,nlay,impl 160 166 161 167 real ptimestep
Note: See TracChangeset
for help on using the changeset viewer.