... | @@ -31,12 +31,12 @@ cd ../.. |
... | @@ -31,12 +31,12 @@ cd ../.. |
|
|
|
|
|
PETSc is the standard linear algebra toolkit used by GetDP (GetDP can also use linear solvers from Sparskit -- see the configuration options for more information).
|
|
PETSc is the standard linear algebra toolkit used by GetDP (GetDP can also use linear solvers from Sparskit -- see the configuration options for more information).
|
|
|
|
|
|
To compile a sequential real arithmetic PETSc library (here for PETSc 3.7.4):
|
|
To compile a sequential real arithmetic PETSc library (here for PETSc 3.10.2):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.4.tar.gz
|
|
curl -L -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.10.2.tar.gz
|
|
tar zxvf petsc-3.7.4.tar.gz
|
|
tar zxvf petsc-3.10.2.tar.gz
|
|
cd petsc-3.7.4
|
|
cd petsc-3.10.2
|
|
export PETSC_DIR=$PWD
|
|
export PETSC_DIR=$PWD
|
|
export PETSC_ARCH=real_mumps_seq
|
|
export PETSC_ARCH=real_mumps_seq
|
|
./configure --with-clanguage=cxx --with-debugging=0 --with-mpi=0 --with-mpiuni-fortran-binding=0 --download-mumps=yes --with-mumps-serial --with-shared-libraries=0 --with-x=0 --with-ssl=0 --with-scalar-type=real
|
|
./configure --with-clanguage=cxx --with-debugging=0 --with-mpi=0 --with-mpiuni-fortran-binding=0 --download-mumps=yes --with-mumps-serial --with-shared-libraries=0 --with-x=0 --with-ssl=0 --with-scalar-type=real
|
... | @@ -48,12 +48,12 @@ make |
... | @@ -48,12 +48,12 @@ make |
|
cd ..
|
|
cd ..
|
|
```
|
|
```
|
|
|
|
|
|
If you also wish to solve eigenvalue problems, you will want to install SLEPc, an eigensolver based on PETSc (here for SLEPc 3.7.1):
|
|
If you also wish to solve eigenvalue problems, you will want to install SLEPc, an eigensolver based on PETSc (here for SLEPc 3.10.1):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -O http://slepc.upv.es/download/distrib/slepc-3.7.1.tar.gz
|
|
curl -L -O https://slepc.upv.es/download/distrib/slepc-3.10.1.tar.gz
|
|
tar zxvf slepc-3.7.1.tar.gz
|
|
tar zxvf slepc-3.10.1.tar.gz
|
|
cd slepc-3.7.1
|
|
cd slepc-3.10.1
|
|
export SLEPC_DIR=$PWD
|
|
export SLEPC_DIR=$PWD
|
|
./configure
|
|
./configure
|
|
make
|
|
make
|
... | @@ -82,12 +82,12 @@ Follow the same steps as in the previous section, but change `--with-scalar-type |
... | @@ -82,12 +82,12 @@ Follow the same steps as in the previous section, but change `--with-scalar-type |
|
|
|
|
|
## Distributed memory GetDP with MPI support for running on computer clusters
|
|
## Distributed memory GetDP with MPI support for running on computer clusters
|
|
|
|
|
|
For MPI (distributed memory capable) GetDP versions you need to compile the MPI version of PETSc (here for PETSc 3.7.4):
|
|
For MPI (distributed memory capable) GetDP versions you need to compile the MPI version of PETSc (here for PETSc 3.10.2):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.4.tar.gz
|
|
curl -L -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.10.2.tar.gz
|
|
tar zxvf petsc-3.7.4.tar.gz
|
|
tar zxvf petsc-3.10.2.tar.gz
|
|
cd petsc-3.7.4
|
|
cd petsc-3.10.2
|
|
export PETSC_DIR=$PWD
|
|
export PETSC_DIR=$PWD
|
|
export PETSC_ARCH=complex_mumps_mpi
|
|
export PETSC_ARCH=complex_mumps_mpi
|
|
./configure --with-debugging=0 --with-clanguage=cxx --with-shared-libraries=0 --with-x=0 --download-mumps=1 --download-metis=1 --download-parmetis=1 --download-scalapack=1 --download-blacs=1 --with-scalar-type=complex
|
|
./configure --with-debugging=0 --with-clanguage=cxx --with-shared-libraries=0 --with-x=0 --download-mumps=1 --download-metis=1 --download-parmetis=1 --download-scalapack=1 --download-blacs=1 --with-scalar-type=complex
|
... | @@ -98,12 +98,12 @@ make |
... | @@ -98,12 +98,12 @@ make |
|
cd ..
|
|
cd ..
|
|
```
|
|
```
|
|
|
|
|
|
If you also wish to solve eigenvalue problems, compile SLEPc (here for SLEPc 3.7.1):
|
|
If you also wish to solve eigenvalue problems, compile SLEPc (here for SLEPc 3.10.1):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -O http://slepc.upv.es/download/distrib/slepc-3.7.1.tar.gz
|
|
curl -L -O https://slepc.upv.es/download/distrib/slepc-3.10.1.tar.gz
|
|
tar zxvf slepc-3.7.1.tar.gz
|
|
tar zxvf slepc-3.10.1.tar.gz
|
|
cd slepc-3.7.1
|
|
cd slepc-3.10.1
|
|
export SLEPC_DIR=$PWD
|
|
export SLEPC_DIR=$PWD
|
|
./configure
|
|
./configure
|
|
make
|
|
make
|
... | | ... | |