Directory trunk/libf/misc/

Total Files:
15
Deleted Files:
15
Lines of Code:
2122

[root]/trunk/libf/misc

Lines of Code

trunk/libf/misc/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 41 (100.0%) 2236 (100.0%) 54.5
dcugnet 6 (14.6%) 866 (38.7%) 144.3
emillour 26 (63.4%) 659 (29.5%) 25.3
lguez 3 (7.3%) 584 (26.1%) 194.6
fairhead 2 (4.9%) 123 (5.5%) 61.5
musat 2 (4.9%) 3 (0.1%) 1.5
acozic 1 (2.4%) 1 (0.0%) 1.0
fhourdin 1 (2.4%) 0 (0.0%) 0.0

Most Recent Commits

fairhead 2017-10-03 16:45 Rev.: 3003

Modifications to the code and xml files to output Ap and B, the coefficients
of the hybrid coordinates as requested by the CMIP6 DataRequest
LF (with guidance from A. Caubel and S. Senesi)

16 lines of code changed in 1 file:

  • trunk/libf/misc: wxios.F90 (+16 -2)
dcugnet 2017-02-02 20:01 Rev.: 2788

Changes in ce0l about the way ozone forcing files are generated:

1) 3D raw input files "climoz.nc" are now handled.
2) Default behaviour is now to let the gcm interpolate in time online.
This helps to avoid huge forcing files (in particular for 3D fields).
In this case, the output files "climoz_LMDZ.nc" all have 14 records:
* records 2-13 are obtained with records 1-12 of "climoz.nc".
* records 1 and 14 are obtained respectively with:
- record 12 of "climoz_m.nc" if available, of "climoz.nc" otherwise.
- record 1 of "climoz_p.nc" if available, of "climoz.nc" otherwise.
3) If ok_daily_climoz key is TRUE, the time interpolation (one record
a day) is forced, using the 14 records described below.
This now depends on the calendar (it was on a 360 days basis only).

Changes in the gcm about the way zone forcing files are read/interpolated:

1) 3D horizontally interpolated "climoz_LMDZ.nc" files are now handled.
2) Daily files (already interpolated in time) are still handled, but their
number of records must match the expected number of days, that depends
on the calendar (records step is no longer 1/360 year).
3) 14 records monthly files are now handled (and prefered). This reduces
the I/O to a minimum and the aditional computational cost is low (simple
online linear time interpolation).
4) If adjust_tropopause key is TRUE, the input fields are stretched using
following method:
* LMDZ dynamical tropopause is detected:
Ptrop_lmdz = MAX ( P(Potential Vorticity==2PVU), P(theta==380K) )
* file chemical tropopause is detected:
Ptrop_file = P( tro3 == o3t ), where:
o3t = 91. + 28. * SIN(PI*(month-2)/6) (ppbV)
This formula comes from Thouret & al., ACP 6, 1033-1051, 2006.
The second term of the expression is multiplied by TANH(lat_deg/20.)
to account for latitude dependency.
* File profile is streched in a +/- 5kms zone around the mean tropopause
to ensure resulting tropopause matches the one of LMDZ.
See procedure regr_pr_time_av for more details.


866 lines of code changed in 6 files:

  • trunk/libf/misc: regr1_conserv_m.F90 (del), regr1_lint_m.F90 (del), regr3_lint_m.F90 (del), regr_conserv_m.F90 (new 388), regr_lint_m.F90 (new 219), slopes_m.F90 (+259 -202)
emillour 2017-01-05 16:21 Rev.: 2741

Cleanup in wxios.F90: get rid of obsolete "XIOS1" case.
EM

6 lines of code changed in 1 file:

  • trunk/libf/misc: wxios.F90 (+6 -92)
fairhead 2016-05-12 12:18 Rev.: 2509


Modifications for the XIOS 2 I/O library

LMDZ will now, by default, use the XIOS 2 library. If you need/want to link LMDZ
with the XIOS 1 library you will need to add the XIOS1 cpp key to your compilation thus:

makelmdz_fcm -d ... -cpp XIOS1 ... gcm

and then use the XIOS1 xml files for LMDZ that are in LMDZ/DefLists:

DefLists/iodef_XIOS1.0.xml
DefLists/context_lmdz_XIOS1.0.xml

as there are some incompatibilities between XIOS 1 and XIOS 2.

LF

107 lines of code changed in 1 file:

  • trunk/libf/misc: wxios.F90 (+107 -13)
lguez 2016-02-09 16:45 Rev.: 2440

For read_climoz = 1 or 2, replaced first order conservative regridding
of ozone by second order conservative regridding, with Van Leer
slope-limiting. The replacement is done for both latitude and pressure
regridding. The replacement is beneficial if the resolution of the
input data is coarser than the resolution of LMDZ. If the resolution
of the input data is finer, then the replacement is neutral, it does
not change much.

584 lines of code changed in 3 files:

  • trunk/libf/misc: regr1_conserv_m.F90 (new 358), regr1_step_av_m.F90 (del), slopes_m.F90 (new 226)
acozic 2015-09-16 14:50 Rev.: 2362

several correction to use LMDZ coupled with INCA
1- add an "use" in gcm to define "klon_glo" variable
2- correct an error on a test in infotrac
3- add parents to inca's tracer in infotrac
4- change calendar name for "leap calendar" in wxios to fit with rev 2229 on gcm

1 lines of code changed in 1 file:

  • trunk/libf/misc: wxios.F90 (+1 -1)
emillour 2015-08-26 08:08 Rev.: 2352

Fix a circular dependency introduced in previous commit: occurs when routines in phy_common use module print_control. Make them 'include "iniprint.h"' instead (not an ideal solution but will have to do for now), and therfore move iniprint.h to "misc" directory.
EM

11 lines of code changed in 1 file:

  • trunk/libf/misc: iniprint.h (new 11)
emillour 2015-08-19 15:21 Rev.: 2342

Follow-up for a cleaner separation between dynamics and physics:
- "write_field" is called from physics and dynamics but has no dependence on either so it should be in "misc"
- "write_field_phy" is common to all physics, so it goes in "phy_common"
- "init_ssrf_m" and "limit_netcdf" are only used by ce0l, so these should be in "dynlonlat_phylonlat/phylmd"
- "q_sat" is called from physics and dynamics but has no dependence on either so it should be in "misc"
EM

398 lines of code changed in 2 files:

  • trunk/libf/misc: q_sat.F (new 72), write_field.F90 (new 326)
emillour 2015-06-25 09:45 Rev.: 2311

Further modifications to enforce physics/dynamics separation:
- moved iniprint.h and misc_mod back to dyn3d_common, as these should only be used by dynamics.
- created print_control_mod in the physics to store flags prt_level, lunout, debug to be local to physics (should be used rather than iniprint.h)
- created abort_physic.F90 , which does the same job as abort_gcm() did, but should be used instead when in physics.
- reactivated inifis (turned it into a module, inifis_mod.F90) to initialize physical constants and print_control_mod flags.
EM

8 lines of code changed in 2 files:

  • trunk/libf/misc: iniprint.h (del), misc_mod.F90 (del)
emillour 2015-06-17 09:33 Rev.: 2301

Moved ioipsl_getin_p_mod.F90 to "phylmd" beacause files in "misc" should rely on neither physics nor dynamics modules (or include) files.
Moved etat0dyn_netcdf.F90 to "dynlonlat_phylonlat/phylmd" as it is only used by ce0l and moreover requires "grid_atob_m" which is in "dynlonlat_phylonlat".
With these adjustements, compiling with '-nophys' works again.
EM

0 lines of code changed in 1 file:

  • trunk/libf/misc: ioipsl_getin_p_mod.F90 (del)
fhourdin 2015-06-16 12:20 Rev.: 2300

Deplacement de fichiers sources pour la compilation 1D.

0 lines of code changed in 1 file:

  • trunk/libf/misc: ioipsl_getin_p_mod.F90 (new)
emillour 2015-06-03 12:59 Rev.: 2291

Added utility routines cbrt to compute cubic roots (used by some planetary physics packages) and getin_p (to read from def files in parallel).
EM

11 lines of code changed in 1 file:

  • trunk/libf/misc: cbrt.F (new 11)
musat 2015-05-12 18:27 Rev.: 2271

Corrections for standard level pressure outputs hist*NMC.nc by XIOS and IOIPSL.
For XIOS one need to specify a default_value="1.e+20" in the field_def_lmdz.xml and
a detect_missing_value=".true." in the file_def_histins_lmdz.xml,
file_def_histday_lmdz.xml, etc files.

3 lines of code changed in 2 files:

  • trunk/libf/misc: wxios.F90 (new)
emillour 2015-03-23 09:27 Rev.: 2239

Reorganizing physics/dynamics interface:
- what is related to dynamics-physics interface is now in a seperate directory: dynlmdz_phy*** for physics in phy***
- 1d model and related dependencies (including a couple from "dynamics", set up as symbolic links) is now in subdirectory "dyn1d" of phy***.
- "bibio" directory is now "misc" and should only contain autonomous utilities.
- "cosp" is now a subdirectory of phylmd.
EM

225 lines of code changed in 18 files:

  • trunk/libf/misc: coefpoly_m.F90 (new 52), description.h (new 5), iniprint.h (new 11), initdynav.F90 (del), initfluxsto.F (del), inithist.F (del), iotd.h (del), iotd_ecrit.F90 (del), iotd_fin.F90 (del), iotd_ini.F90 (del), juldate.F (new 39), minmax.F (new 23), minmax2.F (new 20), ran1.F (new 38), sort.F (new 37), write_field.F90 (del), writedynav.F90 (del), writehist.F (del)
Generated by StatSVN 0.7.0