/[lmdze]
ViewVC logotype

Revision 157


Jump to revision: Previous Next
Author: guez
Date: Mon Jul 20 16:01:49 2015 UTC (8 years, 9 months ago)
Changed paths: 29
Log Message:
Just encapsulated SUBROUTINE vlsplt in a module and cleaned it.

In procedure vlx, local variables dxqu and adxqu only need indices
iip2:ip1jm. Otherwise, just cleaned vlx.

Procedures dynredem0 and dynredem1 no longer have argument fichnom,
they just operate on a file named "restart.nc". The programming
guideline here is that gcm should not be more complex than it needs by
itself, other programs (ce0l etc.) just have to adapt to gcm. So ce0l
now creates files "restart.nc" and "restartphy.nc".

In order to facilitate decentralizing the writing of "restartphy.nc",
created a procedure phyredem0 out of phyredem. phyredem0 creates the
NetCDF header of "restartphy.nc" while phyredem writes the NetCDF
variables. As the global attribute itau_phy needs to be filled in
phyredem0, at the beginnig of the run, we must compute its value
instead of just using itap. So we have a dummy argument lmt_pas of
phyredem0. Also, the ncid of "startphy.nc" is upgraded from local
variable of phyetat0 to dummy argument. phyetat0 no longer closes
"startphy.nc".

Following the same decentralizing objective, the ncid of "restart.nc"
is upgraded from local variable of dynredem0 to module variable of
dynredem0_m. "restart.nc" is not closed at the end of dynredem0 nor
opened at the beginning of dynredem1.

In procedure etat0, instead of creating many vectors of size klon
which will be filled with zeroes, just create one array null_array.

In procedure phytrac, instead of writing trs(: 1) to a text file,
write it to "restartphy.nc" (following LMDZ). This is better because
now trs(: 1) is next to its coordinates. We can write to
"restartphy.nc" from phytrac directly, and not add trs(: 1) to the
long list of variables in physiq, thanks to the decentralizing of
"restartphy.nc".

In procedure phyetat0, we no longer write to standard output the
minimum and maximum values of read arrays. It is ok to check input and
abort on invalid values but just printing statistics on input seems too
much useless computation and out of place clutter.


Changed paths

Path Details
Directorytrunk/Sources/dyn3d/Vlsplt/vlsplt.f modified , text changed
Directorytrunk/Sources/dyn3d/Vlsplt/vlx.f modified , text changed
Directorytrunk/Sources/dyn3d/Vlsplt/vly.f modified , text changed
Directorytrunk/Sources/dyn3d/Vlsplt/vlz.f modified , text changed
Directorytrunk/Sources/dyn3d/advn.f modified , text changed
Directorytrunk/Sources/dyn3d/advtrac.f modified , text changed
Directorytrunk/Sources/dyn3d/dynetat0.f modified , text changed
Directorytrunk/Sources/dyn3d/dynredem0.f modified , text changed
Directorytrunk/Sources/dyn3d/dynredem1.f modified , text changed
Directorytrunk/Sources/dyn3d/etat0.f modified , text changed
Directorytrunk/Sources/dyn3d/gcm.f modified , text changed
Directorytrunk/Sources/dyn3d/leapfrog.f modified , text changed
Directorytrunk/Sources/dyn3d/limx.f modified , text changed
Directorytrunk/Sources/dyn3d/limz.f modified , text changed
Directorytrunk/Sources/dyn3d/prather.f modified , text changed
Directorytrunk/Sources/dyn3d/vlspltqs.f modified , text changed
Directorytrunk/Sources/dyn3d/vlxqs.f modified , text changed
Directorytrunk/Sources/dyn3d/vlyqs.f modified , text changed
Directorytrunk/Sources/phylmd/Interface_surf/soil.f modified , text changed
Directorytrunk/Sources/phylmd/Radlwsw/swclr.f modified , text changed
Directorytrunk/Sources/phylmd/Thermcell/thermcell.f modified , text changed
Directorytrunk/Sources/phylmd/phyetat0.f modified , text changed
Directorytrunk/Sources/phylmd/phyredem.f modified , text changed
Directorytrunk/Sources/phylmd/phyredem0.f added
Directorytrunk/Sources/phylmd/physiq.f modified , text changed
Directorytrunk/Sources/phylmd/phytrac.f modified , text changed
Directorytrunk/depend.mk modified , text changed
Directorytrunk/src_ce0l modified , text changed
Directorytrunk/src_gcm modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.21