xref: /phasta/README.md (revision b69cb63eb137344996ef47bd3e1ac40c7f9509df)
1#build and test
2
3    wget https://fluid.colorado.edu/~kjansen/PHASTA/phastaChefTests.tar.gz
4    tar xzf phastaChefTests.tar.gz # use for CASES path below
5
6Note, the following builds only the native compressible solver.  There are options that can be turned on to utilize PETSc for compressible.  Likewise there are options to build the incompressible solver with SVLS. Finally CMAKE can configure alternate compilers and optimization choices.
7
8    cmake \
9    -DCMAKE_C_COMPILER=gcc \
10    -DCMAKE_CXX_COMPILER=g++ \
11    -DCMAKE_Fortran_COMPILER=gfortran \
12    -DCMAKE_BUILD_TYPE=Debug \
13    -DPHASTA_INCOMPRESSIBLE=OFF \
14    -DPHASTA_COMPRESSIBLE=ON \
15    -DPHASTA_USE_SVLS=OFF \
16    -DPHASTA_USE_PETSC=OFF \
17    -DPHASTA_TESTING=ON \
18    -DCASES=/path/to/phastaCases/ \
19    ..
20
21    make
22
23    ctest
24