60 |
REAL, parameter:: chaice = 3.334E5 / (2.3867E6 * 0.15) |
REAL, parameter:: chaice = 3.334E5 / (2.3867E6 * 0.15) |
61 |
real, parameter:: max_eau_sol = 150. ! in kg m-2 |
real, parameter:: max_eau_sol = 150. ! in kg m-2 |
62 |
real coeff_rel |
real coeff_rel |
63 |
REAL, ALLOCATABLE, SAVE:: run_off_lic(:) ! ruissellement total |
REAL run_off_lic(size(precip_rain)) ! (knon) ruissellement total |
64 |
|
|
65 |
!-------------------------------------------------------------------- |
!-------------------------------------------------------------------- |
66 |
|
|
111 |
IF (nisurf == is_ter) then |
IF (nisurf == is_ter) then |
112 |
qsol = MIN(qsol + bil_eau_s, max_eau_sol) |
qsol = MIN(qsol + bil_eau_s, max_eau_sol) |
113 |
else if (nisurf == is_lic) then |
else if (nisurf == is_lic) then |
|
if (.not. allocated(run_off_lic)) allocate(run_off_lic(knon)) |
|
|
! assumes that the fraction of land-ice does not change during the run |
|
|
|
|
114 |
do i = 1, knon |
do i = 1, knon |
115 |
run_off_lic(i) = (coeff_rel * fqcalving(i)) + & |
run_off_lic_0(i) = (coeff_rel * fqcalving(i)) + & |
116 |
(1. - coeff_rel) * run_off_lic_0(i) |
(1. - coeff_rel) * run_off_lic_0(i) |
117 |
run_off_lic_0(i) = run_off_lic(i) |
run_off_lic(i) = run_off_lic_0(i) + bil_eau_s(i) / dtphys |
|
run_off_lic(i) = run_off_lic(i) + bil_eau_s(i) / dtphys |
|
118 |
enddo |
enddo |
119 |
endif |
endif |
120 |
|
|