forked from 0tt3r/QuaC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
quick_install_instructions
18 lines (16 loc) · 1.03 KB
/
quick_install_instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#For example, if you wanted to install PETSc into dir/soft
mkdir soft
cd soft
git clone -b maint https://bitbucket.org/petsc/petsc petsc
cd petsc/
export PETSC_DIR=dir/soft/petsc
export PETSC_ARCH=linux-gnu-c-complex
## This compiles PETSc in optimized mode, which is significantly faster than
## with debugging information on
##If you do not have blas/lapack or mpich, use below.
#./configure PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} --download-fblaslapack --download-mpich --with-scalar-type=complex --with-debugging=no COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 --with-64-bit-indices
##If you are on an HPC cluster where MPI is already configured, use:
# ./configure PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} --with-scalar-type=complex --with-debugging=no COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 --with-64-bit-indices
make PETSC_DIR=${PETSC_DIR} PETSC_ARCH=${PETSC_ARCH} all
make PETSC_DIR=${PETSC_DIR} PETSC_ARCH=${PETSC_ARCH} test
#Note, you should set PETSC_DIR=<dir/soft/petsc> and PETSC_ARCH=linux-gnu-c-complex in your bashrc