source: LMDZ6/trunk/tools/netcdf95/docs/Detailed_content/dimensions.md @ 4918

Last change on this file since 4918 was 4918, checked in by Laurent Fairhead, 4 weeks ago

Reintegrated NetCDF95 in LMDZ so that it is compiled and made available by the makelmdz_fcm script.
The makelmdz_fcm creates the libnetcdf95 library and copies it in the tools/netcdf/lib directory, copying
the mod files in the tools/netcdf/include library.

File size: 2.0 KB
Line 
1Dimensions
2===
3
4This page describles procedures handling NetCDF dimensions.
5
6See the [improvements page](improvements.md) for an
7explanation of the mnemonics \"basic change\", \"interface change\",
8\"functionality change\", \"additional procedure\".
9
10`nf95_def_dim`
11---
12
13(interface change)
14
15      subroutine nf95_def_dim(ncid, name, nclen, dimid, ncerr)
16        integer,             intent( in) :: ncid
17        character (len = *), intent( in) :: name
18        integer,             intent( in) :: nclen
19        integer,             intent(out) :: dimid
20        integer, intent(out), optional :: ncerr
21
22The argument for the length of the dimension is called `nclen` in
23`nf95_def_dim`, instead of `len` in `nf90_def_dim`. `len` is not a good
24choice for a variable name because it is the name of a Fortran intrinsic
25procedure.
26
27Reference:
28[`nf90_def_dim`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_def_dim)
29
30`nf95_inq_dimid`
31---
32
33(basic change)
34
35      subroutine nf95_inq_dimid(ncid, name, dimid, ncerr)
36        integer,             intent(in) :: ncid
37        character (len = *), intent(in) :: name
38        integer,             intent(out) :: dimid
39        integer, intent(out), optional:: ncerr
40
41Reference:
42[`nf90_inq_dimid`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_inq_dimid)
43
44`nf95_inquire_dimension`
45---
46
47(interface change)
48
49      subroutine nf95_inquire_dimension(ncid, dimid, name, nclen, ncerr)
50        integer,                       intent( in) :: ncid, dimid
51        character (len = *), optional, intent(out) :: name
52        integer,             optional, intent(out) :: nclen
53        integer, intent(out), optional:: ncerr
54
55The argument for the length of the dimension is called `nclen` in
56`nf95_inquire_dimension`, instead of `len` in `nf90_inquire_dimension`.
57`len` is not a good choice for a variable name because it is the name of
58a Fortran intrinsic procedure.
59
60Reference:
61[`nf90_inquire_dimension`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_inquire_dimension)
Note: See TracBrowser for help on using the repository browser.