-
Notifications
You must be signed in to change notification settings - Fork 34
adcirc
zacharyburnett edited this page Apr 25, 2022
·
1 revision
copy adcirc-cg-54.01 to remote, using rsync or an FTP client such as WinSCP
module load cmake intel impi netcdfif on a local machine, you can try sudo apt-get install libnetcdf-dev libnetcdff-dev libopenmpi-dev
cd adcirc-cg-54.01
mkdir build && cd buildcmake .. \
-DBUILD_ADCIRC=ON \
-DBUILD_ADCPREP=ON \
-DBUILD_ADCSWAN=ON \
-DBUILD_ASWIP=ON \
-DBUILD_LIBADCIRC_SHARED=ON \
-DBUILD_LIBADCIRC_STATIC=ON \
-DBUILD_PADCIRC=ON \
-DBUILD_PADCSWAN=ON \
-DBUILD_PUNSWAN=ON \
-DBUILD_SWAN=ON \
-DBUILD_UTILITIES=ON \
-DCMAKE_CXX_COMPILER=mpiicc \
-DCMAKE_C_COMPILER=mpiicc \
-DCMAKE_Fortran_COMPILER=mpiifort \
-DENABLE_OUTPUT_NETCDF=ON \
-DNETCDFHOME=$(nc-config --prefix)also run the following on Hera, Orion, or Jet:
cmake .. -DMPI_FORTRAN_INCLUDE_PATH=$(dirname $(dirname $(which mpiifort)))/includeto install to an environment, first run cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/environment
run make within the build/ directory, using the optional -j flag to specify the number of cores
to build ADCIRC:
make install compiler=intel NETCDF4=enableto build Parallel ADCIRC:
make padcirc compiler=intel NETCDF4=enable