xref: /phasta/README.md (revision b69cb63eb137344996ef47bd3e1ac40c7f9509df)
190af2085SCameron Smith#build and test
2416a0b4bSCameron Smith
3*b69cb63eSKenneth E. Jansen    wget https://fluid.colorado.edu/~kjansen/PHASTA/phastaChefTests.tar.gz
48e3b231fSCameron Smith    tar xzf phastaChefTests.tar.gz # use for CASES path below
590af2085SCameron Smith
6*b69cb63eSKenneth E. JansenNote, 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.
7ff76ca8fSCameron Smith
890af2085SCameron Smith    cmake \
990af2085SCameron Smith    -DCMAKE_C_COMPILER=gcc \
1090af2085SCameron Smith    -DCMAKE_CXX_COMPILER=g++ \
1190af2085SCameron Smith    -DCMAKE_Fortran_COMPILER=gfortran \
1290af2085SCameron Smith    -DCMAKE_BUILD_TYPE=Debug \
13*b69cb63eSKenneth E. Jansen    -DPHASTA_INCOMPRESSIBLE=OFF \
1490af2085SCameron Smith    -DPHASTA_COMPRESSIBLE=ON \
15ff76ca8fSCameron Smith    -DPHASTA_USE_SVLS=OFF \
16ff76ca8fSCameron Smith    -DPHASTA_USE_PETSC=OFF \
17ff76ca8fSCameron Smith    -DPHASTA_TESTING=ON \
18ff76ca8fSCameron Smith    -DCASES=/path/to/phastaCases/ \
1990af2085SCameron Smith    ..
2090af2085SCameron Smith
2190af2085SCameron Smith    make
2290af2085SCameron Smith
2390af2085SCameron Smith    ctest
24