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:
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:
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:
(86 more)