Next: Installation of MPICH2 on
Up: Installation of SWAN on
Previous: Compiling and linking SWAN
Building with netCDF support
SWAN 40.91A (and later versions) contains extensions that provide netCDF output of spectra and maps of several wave parameters.
Carry out the following steps.
- Make sure that netCDF 4.1.x is compiled and available on your system.
For details, consult https://www.unidata.ucar.edu/downloads/netcdf/index.jsp.
The Fortran interface must have been enabled when netCDF was built.
- Define the variable NETCDFROOT in file macros.inc to point to the netCDF root directory
(e.g. NETCDFROOT=/usr/local/netcdf-4.1.3 in case of Linux or
in case of Windows). This enables to compile netCDF I/O into SWAN.
- Build SWAN as usual (e.g. make mpi); see Section 3.1.
The SWAN team 2017-10-26