67 INTEGER,
INTENT(IN) :: KI
68 REAL,
DIMENSION(:),
INTENT(INOUT) :: PHI
69 REAL,
DIMENSION(:,:),
INTENT(OUT) :: PHT
74 LOGICAL,
DIMENSION(NNCAT,SIZE(NMASKI,3)) :: GTEST
75 INTEGER :: J1,J2,J3,J4
76 INTEGER :: INBSAT, INBALL
80 REAL(KIND=JPRB) :: ZHOOK_HANDLE
82 IF (
lhook)
CALL dr_hook(
'RECHARGE_SURF_TOPD',0,zhook_handle)
95 IF (phi(j3) <= 0.0)
THEN 107 IF ( zwnew >=
xwfctopt(j1,j2) )
THEN 140 DO WHILE ( zrest>0.0 )
159 zrest = zrest + phi(j3)
160 gtest(j1,j4) = .false.
207 IF ( zrest/=0.0 )
THEN 209 inbsat=
count(.NOT.gtest)
211 IF ( inbsat ==
nnpix(j3) )
THEN 213 IF (
nnpix(j3) > 400 )
THEN 214 WRITE(*,*)
'MAILLE NUM=',j3,
'nb pix tot=',
nnpix(j3)
222 phi(j3) = phi(j3) + ( zrest / (
nnpix(j3) - inbsat) )
233 IF (
lhook)
CALL dr_hook(
'RECHARGE_SURF_TOPD',1,zhook_handle)
real, dimension(:,:), allocatable xwtopt
subroutine recharge_surf_topd(PHI, PHT, KI)
real, dimension(:,:), allocatable xdmaxt
integer, dimension(:), allocatable nnpix
real, dimension(:,:), allocatable xdmaxfc
real, dimension(:,:), allocatable xdtopt
integer, parameter nundef
real, dimension(:,:), allocatable xwfctopt
real, dimension(:,:), allocatable xwstopt
integer, dimension(:,:,:), allocatable nmaski
integer, dimension(:,:), allocatable nnbv_in_mesh
integer, dimension(:,:), allocatable nmaskt