===== Installation of PETSc =====
==== PETSc 3.2-p7 ====
* without debugging; optimised
* with Intel Compiler
* with Intel MKL
* with Intel Blacs/Scalapack
* with Valgrind
* with SuperLU
* with MUMPS
* with Parmetis
./configure -with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort CFLAGS='-O3 -xHost' CXXFLAGS='-O3-xHost' FFLAGS='-O3 -xHost' --download-superlu --download-mumps --download-parmetis --with-blas-lapack-dir=/opt/intel/mkl/lib/intel64 PETSC_ARCH=intel_opt_32 --with-shared-libraries=yes --with-blacs-lib=/opt/intel/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a --with-blacs-include=/opt/intel/mkl/include --with-scalapack-lib=/opt/intel/mkl/lib/intel64/libmkl_scalapack_lp64.a --with-scalapack-include=/opt/intel/mkl/include --prefix=/opt/sw/petsc/3.2-p7 --with-valgrind-dir=/opt/sw/valgrind/3.9.0 --with-scalar-type=complex --with-debugging=0
make PETSC_ARCH=intel_opt_32 all test
make PETSC_DIR=/opt/src/petsc/petsc-3.2-p7 PETSC_ARCH=intel_opt_32 install
* with debugging
* with Intel Compiler
* with Intel MKL
* with Intel Blacs/Scalapack
* with Valgrind
* with SuperLU
* with MUMPS
* with Parmetis
./configure -with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort --download-superlu --download-mumps --download-parmetis --with-blas-lapack-dir=/opt/intel/mkl/lib/intel64 PETSC_ARCH=intel_debug_32 --with-shared-libraries=yes --with-blacs-lib=/opt/intel/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a --with-blacs-include=/opt/intel/mkl/include --with-scalapack-lib=/opt/intel/mkl/lib/intel64/libmkl_scalapack_lp64.a --with-scalapack-include=/opt/intel/mkl/include --prefix=/opt/sw/petsc/3.2-p7_debug --with-valgrind-dir=/opt/sw/valgrind/3.9.0 --with-scalar-type=complex
make PETSC_ARCH=intel_debug_32 all test
make PETSC_DIR=/opt/src/petsc/petsc-3.2-p7 PETSC_ARCH=intel_debug_32 install
==== PETSc 3.4.5 ====
* without debugging; optimised
* with Intel Compiler
* with Intel MKL
* with Intel Blacs/Scalapack
* with Valgrind
* with SuperLU
* with MUMPS
* with Parmetis
./configure --prefix=/opt/sw/petsc/3.4.5 --with-cxx=mpiicpc --with-cc=mpiicc --with-fc=mpiifort --with-debugging=0 CFLAGS="-O3 -xHOST" FFLAGS="-O3 -xHOST" CXXFLAGS='-O3 -xHost' --with-scalar-type=complex --with-fortran-kernels=1 --with-blas-lapack-dir=/opt/intel/mkl/lib/intel64 --download-mumps=yes --download-metis=yes --download-parmetis=yes --download-spooles=yes --download-plapack=1 --download-superlu_dist=1 --with-shared-libraries=1 --with-scalapack-lib="-L/opt/intel/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64" --with-scalapack-include=/opt/intel/mkl/include --with-valgrind-dir=/opt/sw/valgrind/3.9.0 PETSC_ARCH=intel_opt_34
make PETSC_DIR=/opt/src/petsc/petsc-3.4.5 PETSC_ARCH=intel_opt_34 all
make PETSC_DIR=/opt/src/petsc/petsc-3.4.5 PETSC_ARCH=intel_opt_34 install
* with debugging
* with Intel Compiler
* with Intel MKL
* with Intel Blacs/Scalapack
* with Valgrind
* with SuperLU
* with MUMPS
* with Parmetis
./configure --prefix=/opt/sw/petsc/3.4.5_debug --with-cxx=mpiicpc --with-cc=mpiicc --with-fc=mpiifort --with-scalar-type=complex --with-fortran-kernels=1 --with-blas-lapack-dir=/opt/intel/mkl/lib/intel64 --download-mumps=yes --download-metis=yes --download-parmetis=yes --download-spooles=yes --download-plapack=1 --download-superlu_dist=1 --with-shared-libraries=1 --with-scalapack-lib="-L/opt/intel/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64" --with-scalapack-include=/opt/intel/mkl/include --with-valgrind-dir=/opt/sw/valgrind/3.9.0 PETSC_ARCH=intel_debug_34
make PETSC_DIR=/opt/src/petsc/petsc-3.4.5 PETSC_ARCH=intel_debug_34 all
make PETSC_DIR=/opt/src/petsc/petsc-3.4.5 PETSC_ARCH=intel_debug_34 install