-
Notifications
You must be signed in to change notification settings - Fork 66
Building AMRWind
Matt Larsen edited this page Apr 28, 2021
·
7 revisions
WARNING: do not use openmp for anything.
AMR Wind requires a c++14 compiler.
git checkout --recursive https://github.com/Alpine-DAV/amr-wind.git
git checkout ascent
cd amr-wind
mkdir build
cd build
cmake .. -DAMR_WIND_ENABLE_ASCENT=ON -DASCENT_DIR=path_to_ascent_install -DAMR_WIND_ENABLE_MPI=ON
make
To run one of the examples, use the following actions file in the build directory:
-
action: "add_scenes"
scenes:
s1:
plots:
p1:
type: "pseudocolor"
field: "temperature"
renders:
r1:
image_prefix: "temperature_%04d"
camera:
azimuth: 90
Run the example:
srun -n 1 amr_wind ../test/test_files/abl_godunov/abl_godunov.i
There are some decks that require amrex to be compiled with hypre (min version of 2.19.0 and if using cuda 2.20.0). The cmake command I used is:
cmake .. -DAMR_WIND_ENABLE_ASCENT=ON -DASCENT_DIR=/usr/WS2/larsen30/pascal/wind/ascent/install -DAMR_WIND_ENABLE_HYPRE:BOOL=ON -DHYPRE_ROOT:PATH=/usr/WS2/larsen30/pascal/wind/ascent/uberenv_libs/spack/opt/spack/linux-rhel7-broadwell/gcc-8.3.1/hypre-2.20.0-kj3u2safrmphwcyl27zpzvasfhemmmel -DAMR_WIND_ENABLE_MPI=ON