Bug fix: add count argument to `nf90_get_var`
Because, in the rico case, NetCDF variables which are read have
dimensions `(..., lat, lon)`, in NetCDF order, with lon = lat =
1. Without the count argument, for apbp for example, `nf90_get_var`
tried to read nlevel + 1 subscript values in the dimension lon, 1
subscript value in the lat dimension, and 1 subscript value in the
nlevp1 dimension: not what we want. I have checked that the cases
ARMCU/REF, amma and rico work with this revision.
5 lines of code changed in 1 file:
Reported modifications done in rev [4283] into phydlmdiso which now compiles again.
925 lines of code changed in 4 files:
Removed iflag_wk_act and iflag_inertie (to be added in the config.def)
Added infos on the last tuned physics in the README file
I.Musat
5 lines of code changed in 4 files:
Added landice_opt=2 : Treat continental land ice fractions in ORCHIDEE => pctsrf(:,is_lic) = 0.0 in LMDZ.
For this option, some more variables are needed from ORCHIDEE. Therfor change in the interface LMDZ-ORCHIDEE in surf_land_orchidee_mod is done. Previous interface is moved to surf_land_orchidee_nolic_mod.f90. To compile with previous interface, cpp key ORCHIDEE_NOLIC is added. Previous interface is compiled with argument orchidee2.1 in makelmdz and makelmdz_fcm.
At the same time, when the interface was changed, the variable yrmu0(coszang) was added in the call to intersurf_initialize_gathered. This is needed in ORCHIDEE to better initialize the model.
Modifications done by Etienne Vignon and Josefine Ghattas
1055 lines of code changed in 11 files:
Bug fix lecture format standard 1D
17 lines of code changed in 1 file:
Changing lmixmin cf. Etienne Vignon and rearranging last flags added.
I.Musat
6 lines of code changed in 1 file:
CMIP6 physic with Etienne routines activated:
using *lscp* routines instead of fisrtilp
I.Musat
615 lines of code changed in 1 file:
Remember CMIP6 values of thermals_afact, thermals_fact_epsilon,
thermals_betalpha and cloudth_sigma1s_factor.
Add default values for Etienne routines :
ok_new_lscp=n
ok_icefra_lscp=n
I.Musat
14 lines of code changed in 1 file:
Correct paths to NetCDF-Fortran
The directory containing libraries from the Linux distribution is
included in the default directories searched by gfortran. Besides, it
is not /usr/local on Ubuntu on a personal computer, it is
/usr/lib/x86_64-linux-gnu. As for the include directory, it is
/usr/include on Ubuntu.
2 lines of code changed in 1 file:
Link to NetCDF-Fortran library, not C library
The direct link from LMDZ is to the NetCDF-Fortran library, not the C
library. And as the NetCDF-Fortran library is dynamic in Linux
distributions, the link to the C library is not necessary.
0 lines of code changed in 1 file:
Remove useless include flags
These are paths to non-existent directories because FCM does not
compile from LMDZ top source directory.
0 lines of code changed in 1 file:
Bug fix: remove comma before i/o item list
This was accepted by compilers as a legacy extension.
3 lines of code changed in 1 file:
Replace `nf_get_var_type` by `nf90_get_var`
The immediate motivation is a bug fix: `nf_get_var_type` was called
with scalar resul3 or lat, lon, alt, phis instead of array actual
argument for dummy array argument rvals or dvals. Correcting this, we
might as well take the opportunity to use `nf90_get_var`, so we no
longer need to test `NC_DOUBLE` and we have half as many calls.
101 lines of code changed in 3 files:
Link to NetCDF-Fortran library, not C library
The direct link from LMDZ is to the NetCDF-Fortran library, not the C
library. And as the NetCDF-Fortran library is dynamic in Linux
distributions, the link to the C library is not necessary.
0 lines of code changed in 1 file:
Bug fix: split too long lines
The Fortran 2003 standard says a line may contain no more than 132
characters.
6 lines of code changed in 2 files:
Indent the files
2345 lines of code changed in 2 files:
Remove useless `&` at beginning of continued line
259 lines of code changed in 2 files:
Fix for reprobus
4 lines of code changed in 2 files:
Last (hopefully) fix for REPROBUS and exceptions about HNO3.
8 lines of code changed in 2 files:
Fix for reprobus
4 lines of code changed in 2 files:
Add modifications for sequantial version of dynetat0 + fix in reprobus case.
27 lines of code changed in 2 files:
Exceptions for REPROBUS with old conventions for HNO3 in the start.nc file were wrongly placed.
9 lines of code changed in 1 file:
Fixes for INCO, CO2i AND REPROBUS, mostly because some sections are specific to type_trac=="lmdz",
which is not always equivalent to ANY(types_trac=='lmdz).
Also force the water phases to get tracers(*)%component='lmdz' so that nqo can be correctly computed.
20 lines of code changed in 6 files:
Bug fix: pass an array of integers as count
zklevo is real.
1 lines of code changed in 1 file:
Bug fix: pass array argument to pfi of `gr_dyn_fi`
Dummy argument pfi in procedure `gr_dyn_fi` is an array. In procedure
`get_2Dfield`, we cannot associate the array element `champo(1, k)` to
pfi because champo is a pointer. The association of an array element
to an array is not allowed in this case.
1 lines of code changed in 1 file:
Bug fix: split too long lines
The Fortran 2003 standard says a line may contain no more than 132
characters.
34 lines of code changed in 5 files:
Replace `nf_put_vara_type` by `nf90_put_var`
The immediate motivation is a bug fix: `nf_put_vara_type` was called
with scalar instead of array actual arguments for dummy array
arguments start and count. Correcting this, we might as well take the
opportunity to use `nf90_put_var`, so we no longer need to test
`NC_DOUBLE` and we have half as many calls.
13 lines of code changed in 2 files:
Bug fix: correct varid
2 lines of code changed in 1 file:
Bug fix: add missing argument ierr
2 lines of code changed in 2 files:
Remove `include netcdf.inc`
They have become useless.
0 lines of code changed in 1 file:
Replace `nf_noerr` by `nf90_noerr`
We want to remove `include netcdf.inc`, eventually.
41 lines of code changed in 1 file:
Replace `nf_get_vara_type` by `nf90_get_var`
The immediate motivation is a bug fix: `nf_get_vara_type` was called
with scalar instead of array actual arguments for dummy array
arguments start and count. Correcting this, we might as well take the
opportunity to use `nf90_get_var`, so we no longer need to test
`NC_DOUBLE` and we have half as many calls.
47 lines of code changed in 2 files:
Replace `nf_def_var` by `nf90_def_var`
The immediate motivation is a bug fix: `nf_def_var` was called with a
scalar instead of array actual argument for dummy array argument
vdims. The simplest way to correct this bug is to replace by a call to
`nf90_def_var`.
53 lines of code changed in 3 files:
Bug fix: remove comma before i/o item list
This was accepted by compilers as a legacy extension.
10 lines of code changed in 1 file:
Replace `nf_get_vara_type` by `nf90_get_var`
The immediate motivation is a bug fix: `nf_get_vara_type` was called
with scalar instead of array actual arguments for dummy array
arguments start and count. Correcting this, we might as well take the
opportunity to use `nf90_get_var`, so we no longer need to test
`NC_DOUBLE` and we have half as many calls.
0 lines of code changed in 1 file:
Namelist avant declaration ; ne passait plus avec gfortran 11
1 lines of code changed in 1 file:
added co2_ppm0 in def files (for ESM version only)
cleaned up the radiation inputs
41 lines of code changed in 1 file:
add is_omp_root for computation of RCO2_glo
1 lines of code changed in 1 file:
Integration of 3855 from the IPSL-CM6A-MR branch that should actually have been included in r4228
LF
163 lines of code changed in 7 files:
Add-ons in oasis.F90, bld.cfg and makelmdz_fcm to support coupling of species between PISCES and INCA in the IPSLESM/CO2AER configuration.
39 lines of code changed in 3 files:
controle dans les .def du presnivs limite en dessous duquel on ne guide plus
si guide_BL=false
Etienne, pour valentin
10 lines of code changed in 2 files:
controle des z0 sur landice dans les .def et nettoyage surf_landice_mod
pour Valentin
12 lines of code changed in 3 files:
Some more fixes for phydev.
3 lines of code changed in 1 file:
Fix for r4241
1 lines of code changed in 1 file:
Correction de la r4199
IM
2 lines of code changed in 1 file:
Fix for reprobus: "types_trac" (parsed version of "type_trac" with "|") must
be used instead of type_trac most of the time.
5 lines of code changed in 2 files:
Fix for phydev: "types_trac" was not defined.
0 lines of code changed in 2 files:
Need to switch to the LMDZ context each time the physics is called if xios output is activated in the dynamics (forgot to commit)
LF
27 lines of code changed in 1 file:
Modification that should have been included in r4232
1 lines of code changed in 1 file: