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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 202 - (show annotations)
Wed Jun 8 12:23:41 2016 UTC (7 years, 11 months ago) by guez
Original Path: trunk/Sources/phylmd/Interface_surf/interface_surf.f
File size: 811 byte(s)
Promoted lmt_pas from local variable of physiq to variable of module
conf_gcm_m.

Removed variable run_off of module interface_surf. Was not
used. Called run_off_ter in LMDZ, but not used nor printed there
either.

Simplified logic in interfoce_lim. The way it was convoluted with
interfsurf_hq and clmain was quite a mess. Extracted reading of SST
into a separate procedure: read_sst. We do not need SST and pctsrf_new
at the same time: SST is not needed for sea-ice surface. I did not
like this programming: going through the procedure repeatedly for
different purposes and testing inside whether there was something to
do or it was already done. Reading is now only controlled by itap and
lmt_pas, instead of debut, jour, jour_lu and deja_lu. Now we do not
copy from pct_tmp to pctsrf_new every time step.

Simplified processing of pctsrf in clmain and below. It was quite
troubling: pctsrf_new was intent out in interfoce_lim but only defined
for ocean and sea-ice. Also the idea of having arrays for all
surfaces, pcsrf and pctsrf_new, in interfsurf_hq, which is called for
a particular surface, was troubling. pctsrf_new for all surfaces was
intent out in intefsurf_hq, but not defined for all surfaces at each
call. Removed argument pctsrf_new of clmain: was a duplicate of pctsrf
on output, and not used in physiq. Replaced pctsrf_new in clmain by
pctsrf_new_oce and pctsrf_new_sic, which were the only ones modified.

1 MODULE interface_surf
2
3 ! From phylmd/interface_surf.F90, version 1.8 2005/05/25 13:10:09
4 ! L. Fairhead, LMD, february 2000
5
6 IMPLICIT none
7
8 REAL, ALLOCATABLE, SAVE:: run_off_lic(:) ! ruissellement total
9
10 REAL, save :: tau_calv
11 ! temps de relaxation pour la fonte des glaciers, en jours
12
13 contains
14
15 subroutine conf_interface
16
17 ! From phylmd/conf_phys.F90, version 1.7 2005/07/05 07:21:23
18
19 ! Configuration de l'interace atm/surf
20
21 use unit_nml_m, only: unit_nml
22
23 namelist /conf_interface_nml/ tau_calv
24
25 !------------------------------------------------------
26
27 tau_calv = 360.*10.
28
29 print *, "Enter namelist 'conf_interface_nml'."
30 read(unit=*, nml=conf_interface_nml)
31 write(unit_nml, nml=conf_interface_nml)
32
33 end subroutine conf_interface
34
35 END MODULE interface_surf

  ViewVC Help
Powered by ViewVC 1.1.21