/[lmdze]/trunk/phylmd/Interface_surf/alboc_cd.f
ViewVC logotype

Contents of /trunk/phylmd/Interface_surf/alboc_cd.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 300 - (show annotations)
Thu Aug 2 15:55:01 2018 UTC (5 years, 10 months ago) by guez
File size: 829 byte(s)
The calls to calcul_fluxs were always done with an array argument
dif_grnd set to a scalar (and that is also the case in LMDZ). So just
use a scalar argument.

In procedure fonte_neige, the value of run_off_lic from previous call
was actually not used. So we can remove the save attribute and make it
an automatic array.

1 module alboc_cd_m
2
3 IMPLICIT NONE
4
5 contains
6
7 pure function alboc_cd(mu0)
8
9 ! From LMDZ4/libf/phylmd/albedo.F, version 1.2, 2005/02/07 15:00:52
10
11 ! Author: Z. X. Li (LMD/CNRS)
12 ! Date: 1994/06/24
13
14 ! Calculer l'alb\'edo sur l'oc\'ean en fonction de l'angle
15 ! z\'enithal moyen. Formule due \`a Larson and Barkstrom,
16 ! Proceedings of the symposium on radiation in the atmosphere,
17 ! 19-28 August 1976, science Press, 1977, pages 451-453, ou
18 ! th\`ese de 3\`eme cycle de Sylvie Joussaume.
19
20 REAL, intent(in):: mu0(:) ! cosinus de l'angle solaire z\'enithal
21 real alboc_cd(size(mu0)) ! alb\'edo de surface de l'oc\'ean
22
23 !----------------------------------------------------------
24
25 alboc_cd = max(min(0.058 / (max(mu0, 0.) + 0.3), 0.6), 0.04)
26
27 END function alboc_cd
28
29 end module alboc_cd_m

  ViewVC Help
Powered by ViewVC 1.1.21