Difference between revisions of "Delft3D Configuration"

From UFRC
Jump to navigation Jump to search
Line 1: Line 1:
 
If you are interested in installing Delft3D locally to accommodate custom changes to the Delft3D  
 
If you are interested in installing Delft3D locally to accommodate custom changes to the Delft3D  
base, please follow the following instructions.
+
base source, you may use the following procedure.  
  
Currently, Delft3D can be successfully installed only with Intel suite of compilers. GCC installation requires  
+
Currently, Delft3D can be successfully installed only with the 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
+
extensive changes to source code to make it adhere to F90 standard (GCC compiler suite expects strict adherence to the
standard.  
+
standard).  
  
The routine below is tested on HPG. However, please refer to https://oss.deltares.nl/web/delft3d/get-started for details.
+
The outline given 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
 
Clone the repository: svn checkout https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/142586 delft3d_repository
Line 35: Line 35:
 
       ./autogen.sh
 
       ./autogen.sh
 
         cd ../..
 
         cd ../..
Configure for HPG
+
d) Configure for HPG
 
       ./configure prefix=/apps/intel/2020.0.166/openmpi/4.1.5/delft3d/4.6.1 \
 
       ./configure prefix=/apps/intel/2020.0.166/openmpi/4.1.5/delft3d/4.6.1 \
 
       --with-mpi --with-netcdf --enable-shared \
 
       --with-mpi --with-netcdf --enable-shared \
 
       --with-petsc
 
       --with-petsc
 +
      make ds-install
  
The installation prefix shown above is for the HPG and you are required to use your custom installation prefix.
+
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, and share directories will be installed in your installation prefix.  
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
 
Setup the local module environment as described in https://help.rc.ufl.edu/doc/Modules

Revision as of 14:05, 17 April 2024

If you are interested in installing Delft3D locally to accommodate custom changes to the Delft3D base source, you may use the following procedure.

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

The outline given 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 ../..

d) 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
      make ds-install

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