Delft3D Configuration

From UFRC
Revision as of 13:59, 17 April 2024 by Perera (talk | contribs)
Jump to navigation Jump to search

If you are interested in installing Delft3D locally to accommodate custom changes to the Delft3D base, please follow the following instructions.

Currently, Delft3D can be successfully installed only with Intel suite of compilers. GCC installation requires extensive changes to code to make it adhere to F90 standard (GCC compiler suite expects strict adherence to the standard.

The routine below is tested on HPG. However, please refer to https://oss.deltares.nl/web/delft3d/get-started for details.

Clone the repository: svn checkout https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/142586 delft3d_repository (The number 142586 is the commit. The current version of delft3D is 4.06.01 (svn checkout https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/142586 delft3d_repository) Note: svn is accessible on HPG by module load ubuntu

Set up the installation environment (as of 04/17/2004)

a) module load intel/2020.0.166 openmpi/4.1.5 netcdf-c/4.9.2 netcdf-f/4.6.1 metis/5.2.1 cmake/3.26.4 petsc/3.19.4

b) Initialize the following variables.

       export NETCDF_CFLAGS="-I/apps/intel/2020.0.166/openmpi/4.1.5/netcdf-c/4.9.2/include\
                             -I/apps/intel/2020.0.166/openmpi/4.1.5/netcdf-f/4.6.1/include"

export NETCDF_LIBS="-L/apps/intel/2020.0.166/openmpi/4.1.5/netcdf-c/4.9.2/lib64 -lnetcdf \

                   -L/apps/intel/2020.0.166/openmpi/4.1.5/netcdf-f/4.6.1/lib - lnetcdff"

export PETSc_CFLAGS="-I/apps/intel/2020.0.166/openmpi/4.1.5/petsc/3.19.4/include" export PETSc_LIBS="-I/apps/intel/2020.0.166/openmpi/4.1.5/petsc/3.19.4/lib"

export METIS_PARTMESHDUAL="-L/apps/intel/2020.0.166/metis/5.2.1/lib/ -lmetis" export METIS_CFLAGS="-I/apps/intel/2020.0.166/metis/5.2.1/include/"

c) cd src

  ./autogen.sh
  cd third_party_open/kdtree2
  ./autogen.sh
  cd ../..

Configure for HPG ./configure prefix=/apps/intel/2020.0.166/openmpi/4.1.5/delft3d/4.6.1 \

 --with-mpi --with-netcdf --enable-shared \
 --with-petsc

The installation prefix shown above is for the HPG and you are required to use your custom installation prefix. make ds-install If successful, bin, lib, share directories will be installed in your installation prefix. Setup the local module environment as described in https://help.rc.ufl.edu/doc/Modules