Building on SCOREC Workstations - PHASTA/phasta GitHub Wiki
Universal Setup
Download the tarball with the test cases:
wget www.scorec.rpi.edu/~cwsmith/phastaChefTests.tar.gz .
tar xzf phastaChefTests.tar.gz # use for CASES path below
Debian Jessie
The following instructions are specific to SCOREC workstations running Debian Jessie. Check the debian version with the command cat /etc/debian_version
. Version 8 and above are Jessie. Version 6 is Squeeze.
Setup
module load cmake mpich3/3.1.2-thread-multiple libles
git clone [email protected]:PHASTA/phasta.git
mkdir build-phasta-jessie
cd build-phasta-jessie
Configure
cmake \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_Fortran_COMPILER=gfortran \
-DCMAKE_EXE_LINKER_FLAGS="-ldl " \
-DCMAKE_BUILD_TYPE=Debug \
-DPHASTA_INCOMPRESSIBLE=ON \
-DPHASTA_COMPRESSIBLE=ON \
-DPHASTA_USE_LESLIB=ON \
-DLESLIB=$LIBLES \
-DPHASTA_USE_SVLS=OFF \
-DPHASTA_USE_PETSC=OFF \
-DPHASTA_TESTING=ON \
-DCASES=/path/to/phastaCases/ \
../phasta
Build
make
If successful you should see output like the following.
...
Linking CXX executable ../../bin/M2NFixBnd
[100%] Built target M2NFixBnd
Test
ctest
If successful you should see:
100% tests passed, 0 tests failed out of 23
Label Time Summary:
phsolver_common = 0.30 sec
Total Test time (real) = 31.85 sec