... | ... | @@ -29,7 +29,7 @@ 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).
|
|
|
|
|
|
To compile a sequential real arithmetic PETSc library, first download and uncompressed the PETSc source code from [the official site](https://www.mcs.anl.gov/petsc/download/), then (here for PETSc 3.7.4):
|
|
|
To compile a sequential real arithmetic PETSc library (here for PETSc 3.7.4):
|
|
|
|
|
|
```bash
|
|
|
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.4.tar.gz
|
... | ... | @@ -46,7 +46,7 @@ make |
|
|
cd ..
|
|
|
```
|
|
|
|
|
|
If you also wish to solve eigenvalue problems, you will want to also install SLEPc, an eigensolver based on PETSc. Download and uncompress the SLEPc [source code](http://slepc.upv.es/download/), then (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.7.1):
|
|
|
|
|
|
```bash
|
|
|
curl -O http://slepc.upv.es/download/distrib/slepc-3.7.1.tar.gz
|
... | ... | @@ -80,9 +80,11 @@ 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
|
|
|
|
|
|
For MPI (distributed memory capable) GetDP versions you need to compile the MPI version of PETSc. Download and uncompressed the PETSc source code from [the official site](http://www.mcs.anl.gov/petsc/petsc-as/download/), then (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.7.4):
|
|
|
|
|
|
```bash
|
|
|
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.4.tar.gz
|
|
|
tar zxvf petsc-3.7.4.tar.gz
|
|
|
cd petsc-3.7.4
|
|
|
export PETSC_DIR=$PWD
|
|
|
export PETSC_ARCH=mpi_mumps_complex
|
... | ... | @@ -94,9 +96,11 @@ make |
|
|
cd ..
|
|
|
```
|
|
|
|
|
|
If you also wish to solve eigenvalue problems, download and uncompress the SLEPc [source code](http://slepc.upv.es/download/), then (here for SLEPc 3.7.1):
|
|
|
If you also wish to solve eigenvalue problems, compile SLEPc (here for SLEPc 3.7.1):
|
|
|
|
|
|
```bash
|
|
|
curl -O http://slepc.upv.es/download/distrib/slepc-3.7.1.tar.gz
|
|
|
tar zxvf slepc-3.7.1.tar.gz
|
|
|
cd slepc-3.7.1
|
|
|
export SLEPC_DIR=$PWD
|
|
|
./configure
|
... | ... | |