Changeset 3532 for trunk/LMDZ.COMMON/libf/evolution/NS_fast_subs_univ.F90
- Timestamp:
- Dec 4, 2024, 4:04:54 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/NS_fast_subs_univ.F90
r3527 r3532 32 32 real(8) equildepth ! =zdepthE 33 33 !real(8), external :: zint ! defined in allinterfaces.mod 34 34 35 35 typeE = -9; equildepth = -9999. 36 do i=1,nz 36 do i=1,nz 37 37 if (rhosatav(i) <= avrho1) then 38 38 typeE=i … … 67 67 integer, intent(OUT) :: typeF ! index of depth below which filling occurs 68 68 real(8), intent(INOUT) :: zdepthF 69 real(8), intent(IN) :: B 69 real(8), intent(IN) :: B 70 70 real(8), intent(OUT) :: ypp(nz), zdepthG 71 71 integer, intent(INOUT) :: typeG ! positive on input when Fgeotherm>0 … … 112 112 113 113 !-depth to shallowest perennial ice 114 typeP = -9 114 typeP = -9 115 115 do i=1,nz 116 116 if (porefill(i)>0.) then … … 157 157 endif 158 158 if (typeG>0 .and. typeT<0) then 159 call colint(porefill(:)/eta(:),z,nz,typeG-1,nz,cumfillabove) 159 call colint(porefill(:)/eta(:),z,nz,typeG-1,nz,cumfillabove) 160 160 newtypeG = -9 161 161 do i=typeG,nz … … 178 178 if (newtypeG>0) typeG=newtypeG 179 179 end if 180 ! if typeG>0, then all ice at and below typeG should be erased 180 ! if typeG>0, then all ice at and below typeG should be erased 181 181 end subroutine depths_avmeth 182 182 … … 204 204 205 205 ! advance ice table, avdrho>0 is retreat 206 if (zdepthT>=0. .and. avdrho>0.) then 206 if (zdepthT>=0. .and. avdrho>0.) then 207 207 typeP=-9999; typeT=-9999 208 208 do j=1,nz … … 226 226 endif 227 227 if (zdepthT>z(nz)) zdepthT=-9999. 228 228 229 229 ! advance interface, avdrhoP>0 is loss from zdepthP 230 230 if (avdrhoP>0.) then … … 232 232 do j=1,nz 233 233 if (typeF>0 .and. j>=typeF) exit ! don't retreat beyond typeF 234 if (zdepthT>=0. .and. z(j)>zdepthT) exit 234 if (zdepthT>=0. .and. z(j)>zdepthT) exit 235 235 call colint(porefill(1:nz)*z(1:nz),z(1:nz),nz,1,j,integ) 236 236 erase = j … … 241 241 242 242 ! new depth 243 newtypeP = -9 243 newtypeP = -9 244 244 do j=1,nz 245 245 if (zdepthT>=0. .and. z(j)>zdepthT) exit … … 253 253 ub = typeF 254 254 if (newtypeP>0 .and. typeF>0 .and. newtypeP<ub) ub=newtypeP 255 if (ub>0) then 255 if (ub>0) then 256 256 do j=ub,nz 257 257 porefill(j) = porefill(j) + B*ypp(j)
Note: See TracChangeset
for help on using the changeset viewer.