Skip to content

Repository files navigation

swan-src

SWAN Model Source Code

http://swanmodel.sourceforge.net/

  • ftn_stock: original stock code with patch applied and macros.inc defined
  • ftn_msl: code with MSL modifications

Images

1. comp

Dockerfile:

  • Dockerfile

Args:

  • mpich_version
  • hdf5_version
  • netcdf_version
  • netcdf_fortran_version

Tasks:

  • Remove any existing installs of mpich, hdf5 and netcdf
  • Download stripped ifort (2013) from specified server
  • Source intel binaries and set compilers
  • Download and install mpich (Version 3.2)
  • Download and install hdf5 (Version 1.10.1)
  • Download and install netcdf4 (Version 4.4.1)
  • Download and install netcdf4-fortran (Version 4.4.4)

2. model

Dockerfile:

  • Dockerfile-model

Args:

  • ftn (msl | stock)
  • default_mode (mpi | ser)

Tasks:

  • Copy source code from /source/swan-src/swan_src/ftn_${ftn}
  • Build static SWAN binaries with netcdf4 support
  • Move SWAN binary into /usr/local/bin/swan_$mode.exe
  • Define default model binary swan.exe by symlink to swan_${default_mode}.exe --> swan.exe

Installed binaries with default_mode=mpi:

  • /usr/local/bin/swan.exe -> swan_mpi.exe
  • /usr/local/bin/swan_mpi.exe
  • /usr/local/bin/swan_ser.exe

About

SWAN model source code with and without MSL modifications

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages