Edison - PHASTA/phasta GitHub Wiki
The following instructions are for execution on the NERSC Edison System.
See the Edison page for system details http://www.nersc.gov/users/computational-systems/edison/
module load cmake/3.0.0
Create 'Edison.cmake' with the following contents
set(CMAKE_SYSTEM_NAME Catamount) set(CMAKE_C_COMPILER cc) set(CMAKE_CXX_COMPILER CC) set(CMAKE_Fortran_COMPILER ftn) set(MPI_C_COMPILER cc) set(MPI_CXX_COMPILER CC) set(MPI_Fortran_COMPILER CC)
Note, setting MPI_XXX_COMPILER seems to be a bit of a hack to prevent cmake FindMPI from finding the wrong headers/libs.
mkdir buildEdison cd buildEdison
cmake \ -DCMAKE_TOOLCHAIN_FILE=../Edison.cmake \ -DCMAKE_BUILD_TYPE=Release \ -DPHASTA_INCOMPRESSIBLE=OFF \ -DPHASTA_COMPRESSIBLE=ON \ ..
make VERBOSE=1
see above
Create 'runEdison.sh' with the following contents
#!/bin/bash cd $PBS_O_WORKDIR exe=/path/to/phastaC.exe aprun -n numProcesses $exe
cd path/to/case/directory # should contain a N-procs_case sub-directory qsub -l mppwidth=numProcesses -l walltime=HH:MM:SS ./runEdison.sh