##Get python 3.5 environment module load anaconda3/personal conda create --name firedrake-intel python=3.5 source activate firedrake-intel ##Build Petsc module load intel-suite module load mpi module load cmake/3.6.2 mkdir ${HOME}/firedrake-directory cd ${HOME}/firedrake-directory git clone https://github.com/firedrakeproject/petsc.git cd ${HOME}/firedrake-directory/petsc ./configure FC=mpifc CC=mpicc CXX=mpicxx F90=mpif90 F77=mpif77 --with-shared-libraries=1 --with-debugging=0 --with-c2html=0 --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5 --download-pnetcdf --download-exodusii --download-zlib make PETSC_DIR=${HOME}/firedrake-directory/petsc PETSC_ARCH=arch-linux-c-opt all ##Fix firedrake install cd ${HOME}/firedrake-directory/petsc/include ln -s /apps/mpi/intel/2018.1.163/include/mpi.h ln -s /apps/mpi/intel/2018.1.163/include/mpio.h ##Main build ignore module lads if already loaded module load cmake/3.6.2 module load intel-suite module load mpi export I_MPI_CC="icc -I/apps/mpi/intel/2018.1.163/include" export I_MPI_CXX="icpc -I/apps/mpi/intel/2018.1.163/include" export I_MPI_F90="ifort -I/apps/mpi/intel/2018.1.163/include" export I_MPI_FC="$I_MPI_F90" export I_MPI_F77="$I_MPI_F90" export PETSC_CONFIGURE_OPTIONS=--download-fblaslapack export PETSC_DIR=${HOME}/firedrake-directory/petsc PETSC_ARCH=arch-linux-c-opt cd ${HOME}/firedrake-directory curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install python firedrake-install --no-package-manager --honour-petsc-dir