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

Contents of /trunk/dyn3d/ce0l.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations)
Mon May 9 19:56:28 2016 UTC (8 years ago) by guez
Original Path: trunk/Sources/dyn3d/ce0l.f
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 PROGRAM ce0l
2
3 ! This program sets the initial and boundary values.
4
5 use comdissnew, only: read_comdissnew
6 use conf_gcm_m, only: conf_gcm
7 use dimens_m, only: iim, jjm
8 use etat0_mod, only: etat0
9 use grilles_gcm_netcdf_sub_m, only: grilles_gcm_netcdf_sub
10 use jumble, only: new_unit
11 use limit_mod, only: limit
12 use read_serre_m, only: read_serre
13 use unit_nml_m, only: unit_nml
14
15 implicit none
16
17 REAL phis(iim + 1, jjm + 1) ! surface geopotential, in m2 s-2
18
19 !-------------------------------------
20
21 call new_unit(unit_nml)
22 open(unit_nml, file="used_namelists.txt", status="replace", action="write")
23 CALL conf_gcm
24 call read_comdissnew
25 call read_serre
26 CALL etat0(phis)
27 CALL limit
28 CALL grilles_gcm_netcdf_sub(phis)
29 close(unit_nml)
30
31 END PROGRAM ce0l

  ViewVC Help
Powered by ViewVC 1.1.21