/[lmdze]/trunk/phylmd/Interface_surf/albsno.f90
ViewVC logotype

Contents of /trunk/phylmd/Interface_surf/albsno.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 331 - (show annotations)
Wed Jul 31 17:10:31 2019 UTC (4 years, 9 months ago) by guez
File size: 709 byte(s)
Use same variable name across procedures: falbe.

In procedure albsno, no need for `MAX(0., snow_fall)`: snow_fall is
necessarily >= 0. No need to constrain update of agesno to be >= 0:
the result of the computation is necessarily >= 0 since agesno >= 0
and dtphys <= 86400.

1 module albsno_m
2
3 ! From phylmd/interface_surf.F90, version 1.8 2005/05/25 13:10:09
4
5 IMPLICIT none
6
7 contains
8
9 SUBROUTINE albsno(agesno, alb_neig, snow_fall)
10
11 use comconst, only: dtphys
12
13 REAL, intent(inout):: agesno(:) ! (knon) age of snow, in days
14 real, intent(out):: alb_neig(:) ! (knon)
15 real, intent(in):: snow_fall(:) !(knon)
16
17 !------------------------------------------------------------------------
18
19 ! D\'esert partout:
20 alb_neig = 0.55 + 0.3 * EXP(- agesno / 5.)
21
22 ! Modulation en fonction de l'\^age de la neige :
23 agesno = (agesno + (1. - agesno / 50.) * dtphys / 86400.) &
24 * EXP(- snow_fall * dtphys / 0.3)
25
26 END SUBROUTINE albsno
27
28 end module albsno_m

  ViewVC Help
Powered by ViewVC 1.1.21