91 |
! D\'eclarations pour lecture glace de mer : |
! D\'eclarations pour lecture glace de mer : |
92 |
INTEGER iml_lic, jml_lic |
INTEGER iml_lic, jml_lic |
93 |
INTEGER ncid, varid |
INTEGER ncid, varid |
94 |
REAL, pointer:: dlon_lic(:), dlat_lic(:) |
REAL, ALLOCATABLE:: dlon_lic(:), dlat_lic(:) |
95 |
REAL, ALLOCATABLE:: fraclic(:, :) ! fraction land ice |
REAL, ALLOCATABLE:: fraclic(:, :) ! fraction land ice |
96 |
REAL flic_tmp(iim + 1, jjm + 1) ! fraction land ice temporary |
REAL flic_tmp(iim + 1, jjm + 1) ! fraction land ice temporary |
97 |
|
|
261 |
rlatu) |
rlatu) |
262 |
flic_tmp(iim + 1, :) = flic_tmp(1, :) |
flic_tmp(iim + 1, :) = flic_tmp(1, :) |
263 |
|
|
|
deallocate(dlon_lic, dlat_lic) ! pointers |
|
|
|
|
264 |
! Passage sur la grille physique |
! Passage sur la grille physique |
265 |
pctsrf = 0. |
pctsrf = 0. |
266 |
pctsrf(:, is_lic) = pack(flic_tmp, dyn_phy) |
pctsrf(:, is_lic) = pack(flic_tmp, dyn_phy) |
267 |
! Ad\'equation avec le maque terre/mer |
! Ad\'equation avec le maque terre/mer |
268 |
WHERE (pctsrf(:, is_lic) < EPSFRA) pctsrf(:, is_lic) = 0. |
WHERE (pctsrf(:, is_lic) < EPSFRA) pctsrf(:, is_lic) = 0. |
269 |
WHERE (zmasq < EPSFRA) pctsrf(:, is_lic) = 0. |
WHERE (zmasq < EPSFRA) pctsrf(:, is_lic) = 0. |
270 |
pctsrf(:, is_ter) = zmasq |
where (zmasq <= EPSFRA) pctsrf(:, is_ter) = zmasq |
271 |
where (zmasq > EPSFRA) |
where (zmasq > EPSFRA) |
272 |
where (pctsrf(:, is_lic) >= zmasq) |
where (pctsrf(:, is_lic) >= zmasq) |
273 |
pctsrf(:, is_lic) = zmasq |
pctsrf(:, is_lic) = zmasq |