... | @@ -56,6 +56,25 @@ sudo make install |
... | @@ -56,6 +56,25 @@ sudo make install |
|
# * if you don't have root access, remove "sudo"
|
|
# * if you don't have root access, remove "sudo"
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## PETSc
|
|
|
|
|
|
|
|
Some Gmsh algorithms (relying on cross-fields or reparametrization) benefit from fast sparse linear solvers. Gmsh can use PETSc for this. 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):
|
|
|
|
|
|
|
|
```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=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
|
|
|
|
# Notes:
|
|
|
|
# * if your compilers are not found, specify them explicitly: e.g. --FC=/path/to/f90 for the fortran compiler
|
|
|
|
# * if the BLAS/LAPACK libraries are not installed in standard locations, you will have to specify their location by hand with options --with-blas-lib=/path/to/libblas and --with-lapack-lib=/path/to/liblapack
|
|
|
|
# * as a last recourse (but this will severely degrade performance), you can use generic non-optimized BLAS/LAPACK libraries by using the option --download-fblaslapack=1
|
|
|
|
make
|
|
|
|
cd ..
|
|
|
|
```
|
|
|
|
|
|
## Gmsh
|
|
## Gmsh
|
|
|
|
|
|
You can then compile Gmsh as follows:
|
|
You can then compile Gmsh as follows:
|
... | | ... | |