-
Notifications
You must be signed in to change notification settings - Fork 20
PETSc support
Knut Morten Okstad edited this page Jun 14, 2026
·
2 revisions
IFEM can utilize the PETSc library for iterative linear solvers, preconditioners and assembly. Currently version 3.6.3+ and 3.7.x have been confirmed working.
To compile IFEM with PETSc support, you need to pass the -DIFEM_USE_PETSC=ON option to xmake. This again depends on you having two environment variables set
-
PETSC_DIR- the root path of your PETSc installation -
PETSC_ARCH- the architecture of your PETSc installation
To compile IFEM with parallel PETSc support, you need to pass -DIFEM_USE_PETSC=ON -DIFEM_USE_MPI=ON options to cmake.
This will enable distributed memory parallel computing support through PETSc in IFEM.