Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • make sure you have intel compilers on

  • cd into the /work directory and run “make all”. This will automatically compile and link your program based on your runtime environment.

  • You should get a adcprep, adcpost, dgswem, and dgswem_serial binary

Building on Frontera

Load the necessary modules:

Code Block
languagebash
module load TACC intel/23.1.0 impi

This loads the Intel compilers for Fortran and C: ifort and icx, as well as MPI. Then run make all as above.

Building on Vista

On the new machine Vista, we will instead use NVIDIA compilers. Here we can choose between the regular CPU version and a GPU-accelerated version (still in development). First, load the necessary modules by running

Code Block
module load TACC

The Fortran compiler is now nvfortran and the C and C++ compilers nvc and nvc++.

CPU version

This is the default version. To compile, run

Code Block
languagebash
cd work
make compiler=nvhpc all

GPU version

This code is maintained in a separate branch gpu. Run

Code Block
git fetch --all
git checkout gpu

to sync this branch. Then compile:

Code Block
cd work
make all

Build a test case

Zach from the water institute has graciously lended us a program to build a test case, which we will adapt for DGSWEM:

View file
nameslopingbeach.py
. This code will generate us a rectangular beach with some incoming waves, with a specified amount of elements. Let’s create a 1000 element case for now.

...

Congrats! You have just run your first test case of dgswem!

Child pages (Children Display)
allChildrentrue