This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
research:delft3d [2024/09/09 19:21] msovara |
research:delft3d [2024/09/10 12:35] (current) msovara [Test Delft3D] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Delft3D Installation and Simulation on LENGAU ====== | ====== Delft3D Installation and Simulation on LENGAU ====== | ||
| - | | + | |
| - | //docti cave// | + | 2018 Intel MPI compilation on CentOS-7 |
| + | |||
| + | Using Tmux inside an interactive session, | ||
| + | |||
| + | ====set script==== | ||
| + | < | ||
| + | #!/bin/bash | ||
| + | |||
| + | module purge | ||
| + | module load chpc/parallel_studio_xe/18.0.2/ | ||
| + | source / | ||
| + | module load chpc/ | ||
| + | module add curl/ | ||
| + | |||
| + | export DelftDIR=/ | ||
| + | export DIR=$DelftDIR/ | ||
| + | |||
| + | export I_MPI_SHM=" | ||
| + | |||
| + | export CC=icc | ||
| + | export CXX=icc | ||
| + | export FC=ifort | ||
| + | export FCFLAGS=" | ||
| + | export F77=ifort | ||
| + | export FFLAGS=$FCFLAGS | ||
| + | export CFLAGS=$FCFLAGS | ||
| + | |||
| + | export MPICC=/ | ||
| + | export MPIF90=/ | ||
| + | export MPIF77=/ | ||
| + | |||
| + | export LDFLAGS=" | ||
| + | export CPPFLAGS=" | ||
| + | |||
| + | export NCDIR=" | ||
| + | export LD_LIBRARY_PATH=${NCDIR}/ | ||
| + | export CPPFLAGS=" | ||
| + | export LDFLAGS=" | ||
| + | |||
| + | export NETCDF_CFLAGS=" | ||
| + | export NETCDF_LIBS=" | ||
| + | |||
| + | CFLAGS=' | ||
| + | |||
| + | ulimit -s unlimited | ||
| + | </ | ||
| + | |||
| + | ====LIBRARIES==== | ||
| + | |||
| + | ====hdf5==== | ||
| + | |||
| + | < | ||
| + | wget https:// | ||
| + | # tar -xf hdf5-1.10.6.tar.bz2 | ||
| + | # cd hdf5-1.10.6 | ||
| + | # ./configure --prefix=/ | ||
| + | # make | ||
| + | # make check | ||
| + | # make install | ||
| + | # cd .. | ||
| + | </ | ||
| + | |||
| + | ====netcdf-c==== | ||
| + | < | ||
| + | wget https:// | ||
| + | tar -xf netcdf-c-4.6.1.tar.gz | ||
| + | cd netcdf-c-4.6.1 | ||
| + | ./configure --prefix=/ | ||
| + | make | ||
| + | make check | ||
| + | make install | ||
| + | cd .. | ||
| + | </ | ||
| + | |||
| + | ====netcdf-fortran==== | ||
| + | < | ||
| + | wget https:// | ||
| + | tar -xf netcdf-fortran-4.5.0.tar.gz | ||
| + | cd netcdf-fortran-4.5.0 | ||
| + | ./configure --prefix=/ | ||
| + | make | ||
| + | make check | ||
| + | make install | ||
| + | cd .. | ||
| + | </ | ||
| + | |||
| + | ======Install Delft3D====== | ||
| + | |||
| + | With all the necessary dependencies installed, we can now download, compile and install Delft3D. Note that you must have a Deltares SVN server account to download the source code. If you need to register, see the "Steps needed to use the Delft3D source code" section of the Delft3D compilation guide. In the compilation instructions below, replace < | ||
| + | |||
| + | < | ||
| + | svn checkout --username < | ||
| + | cp delft3dfm-68819/ | ||
| + | cp delft3dfm-68819/ | ||
| + | cd delft3dfm-68819/ | ||
| + | ./ | ||
| + | ./configure --prefix=/ | ||
| + | # make ds-install | ||
| + | # make ds-install -C engines_gpl/ | ||
| + | # cd .. | ||
| + | </ | ||
| + | |||
| + | ======Test Delft3D====== | ||
| + | |||
| + | To test a structured mesh example, edit the run.sh file appropriately and issue the following commands: | ||
| + | < | ||
| + | pushd examples/ | ||
| + | ./run.sh | ||
| + | popd | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | To test a flexible mesh example, issue the following: | ||
| + | < | ||
| + | pushd examples/ | ||
| + | ./run.sh | ||
| + | popd | ||
| + | </ | ||