...
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
|
...
Congrats! You have just run your first test case of dgswem!
Child pages (Children Display) | ||
---|---|---|
|