Gridap plugin to use PETSC (Portable, Extensible Toolkit for Scientific Computation).
GridapPETSc
julia package requires the PETSC
library (Portable, Extensible Toolkit for Scientific Computation) and MPI
to work correctly. You have two main options to install these dependencies.
-
Do nothing [recommended in most cases]. Use the default precompiled
MPI
installation provided byMPI.jl
and the pre-compiledPETSc
library provided byPETSc_jll
. This will happen under the hood when you installGridapPETSc
. You can also force the installation of these default dependencies by setting the environment variablesJULIA_MPI_BINARY
andJULIA_PETSC_LIBRARY
to empty values. -
Choose a specific installation of
MPI
andPETSc
available in the system [recommended in HPC clusters].- First, choose a
MPI
installation. See the documentation ofMPI.jl
for further details. An easy way to achieve this is to create the environment variableJULIA_MPI_BINARY
containing the path to theMPI
binary. - Second, choose a
PETSc
installation. To this end, create an environment variableJULIA_PETSC_LIBRARY
containing the path to the dynamic library object of thePETSC
installation (i.e., the.so
file in linux systems). Very important: The chosenPETSc
lirbary needs to be configured with theMPI
installation considered in previous step.
- First, choose a
GridapPETSc
default sparse matrix format is 0-based compressed sparse row. This types of sparse matrix can be described by SparseMatrixCSR{0,PetscReal,PetscInt}
and SymSparseMatrixCSR{0,PetscReal,PetscInt}
implemented in the SparseMatricesCSR Julia package.