/[lmdze]/trunk/Sources/dyn3d/ce0l.f
ViewVC logotype

Annotation of /trunk/Sources/dyn3d/ce0l.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (hide annotations)
Mon May 9 19:56:28 2016 UTC (8 years ago) by guez
File size: 782 byte(s)
Extracted the call to read_comdissnew out of conf_gcm.

Made ok_instan a variable of module clesphys, itau_phy a variable of
module phyetat0_m, nid_ins a variable of module ini_histins_m, itap a
variable of new module time_phylmdz, so that histwrite_phy can be
called from any procedure without the need to cascade those variables
into that procedure. Made itau_w a variable of module time_phylmdz so
that it is computed only once per time step of physics.

Extracted variables of module clesphys which were in namelist
conf_phys_nml into their own namelist, clesphys_nml, and created
procedure read_clesphys reading clesphys_nml, to avoid side effect.

No need for double precision in procedure getso4fromfile. Assume there
is a single variable for the whole year in the NetCDF file instead of
one variable per month.

Created generic procedure histwrite_phy and removed procedure
write_histins, following LMDZ. histwrite_phy has only two arguments,
can be called from anywhere, and should manage the logic of writing or
not writing into various history files with various operations. So the
test on ok_instan goes inside histwrite_phy.

Test for raz_date in phyetat0 instead of physiq to avoid side effect.

Created procedure increment_itap to avoid side effect.

Removed unnecessary differences between procedures readsulfate and
readsulfate_pi.

1 guez 68 PROGRAM ce0l
2 guez 3
3     ! This program sets the initial and boundary values.
4    
5 guez 191 use comdissnew, only: read_comdissnew
6 guez 3 use conf_gcm_m, only: conf_gcm
7 guez 107 use dimens_m, only: iim, jjm
8 guez 3 use etat0_mod, only: etat0
9 guez 107 use grilles_gcm_netcdf_sub_m, only: grilles_gcm_netcdf_sub
10 guez 57 use jumble, only: new_unit
11 guez 3 use limit_mod, only: limit
12 guez 139 use read_serre_m, only: read_serre
13 guez 57 use unit_nml_m, only: unit_nml
14 guez 3
15     implicit none
16    
17 guez 107 REAL phis(iim + 1, jjm + 1) ! surface geopotential, in m2 s-2
18    
19 guez 3 !-------------------------------------
20    
21 guez 57 call new_unit(unit_nml)
22 guez 79 open(unit_nml, file="used_namelists.txt", status="replace", action="write")
23 guez 3 CALL conf_gcm
24 guez 191 call read_comdissnew
25 guez 113 call read_serre
26 guez 107 CALL etat0(phis)
27 guez 3 CALL limit
28 guez 107 CALL grilles_gcm_netcdf_sub(phis)
29 guez 57 close(unit_nml)
30 guez 3
31 guez 68 END PROGRAM ce0l

  ViewVC Help
Powered by ViewVC 1.1.21