Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 1.15 KB

install_petsc.md

File metadata and controls

33 lines (28 loc) · 1.15 KB

basic

./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpifort
--prefix=/opt/libs/petsc/3.10.3
--with-valgrind-dir=/opt/apps/valgrind/3.14.0
--with-blas-lapack-dir=/opt/intel/18.0/mkl/lib/intel64

or using netlib

./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpifort
--prefix=/opt/libs/petsc/3.10.3
--with-valgrind-dir=/opt/apps/valgrind/3.14.0
--with-blas-lapack-dir=/opt/libs/netlib/3.8.0/lib64

for deal.ii

./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpifort
--prefix=/opt/libs/petsc/3.10.3
--with-valgrind-dir=/opt/apps/valgrind/3.14.0
--with-blas-lapack-dir=/opt/intel/18.0/mkl/lib/intel64
--with-p4-dir=...
--with-scalar-type=complex --with-shared=1 --with-x=0
--with-hypre-dir=...

make all test make install

for cray environment

  • Fortran compiler is ftn
  • FFLAGS needs -hPIC as it may not yield position independent format
  • Not -fPIC. configure script will not understand it
  • --with-batch might be necessary
  • --with-mpiexec might be defined using srun or aprun

GCC10 or higher

  • Fortran compiler option or fortran optimization option may need -w -fallow-argument-mismatch