Skip to content

Commit 0def4e3

Browse files
authored
NetCDF metapackage (#160)
1 parent 4a810c2 commit 0def4e3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pages/spec/metapackages.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,26 @@ name = "my_science_app"
110110
dependencies.hdf5 = "*"
111111
```
112112

113-
HDF5 is supported for Fortran, C and C++ languages. The `pkg-config` backend is employed by `fpm` to find a valid local HDF5 installation, so, please insure that `pkg-config` is also available when using this metapackage.
113+
HDF5 is supported for Fortran, C and C++ languages. The `pkg-config` backend is employed by `fpm` to find a valid local HDF5 installation, so, please ensure that `pkg-config` is also available when using this metapackage.
114114

115-
Both the default and the high-level (`HL`) interfaces are linked against if available.
116-
- On Ubuntu, special steps are taken to ensure `HL` are added.
115+
Both the default and the high-level (`HL`) interfaces are linked against if available.
116+
- On Ubuntu, special steps are taken to ensure `HL` are added.
117117
- On Ubuntu with oneAPI compilers, `CMake` HDF5 installations are supported (`apt` versions only support `gfortran`).
118118

119119
:::{note}
120120
Codes using HDF5 built with `oneAPI` compilers should not have the `-standard-semantics` flag: it changes module name mangling from `_mp_` to `_MP_` which makes HDF5 modules unavailable.
121121
:::
122+
123+
124+
## NetCDF
125+
126+
```{code-block} toml
127+
:emphasize-lines: 2
128+
name = "my_geoscience_app"
129+
dependencies.netcdf = "*"
130+
```
131+
132+
The `netcdf` metapackage will automatically link against the NetCDF Fortran and C libraries.
133+
It exposes the `netcdf` module for Fortran90, `netcdf_f03` and `netcdf4_f03` for
134+
Fortran 2003, as well as the underlying lower-level modules. Similar to HDF5, `fpm`
135+
uses `pkg-config` to find a valid local NetCDF installation.

0 commit comments

Comments
 (0)