next up previous
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.

  1. Make sure that netCDF 4.1.x is compiled and available on your system. For details, consult The Fortran interface must have been enabled when netCDF was built.
  2. Define the variable NETCDFROOT in file to point to the netCDF root directory (e.g. NETCDFROOT=/usr/local/netcdf-4.1.3 in case of Linux or
    NETCDFROOT=C: \PROGRAM FILES \netcdf in case of Windows). This enables to compile netCDF I/O into SWAN.
  3. Build SWAN as usual (e.g. make mpi); see Section 3.1.

The SWAN team 2017-03-23