Compile PETSc
By default, we use PETSc submodule inside of MOOSE as our nonlinear/linear solvers. PETSc can be built using the following script:
commentnote
If you prefer to install PETSc into a specified location, use the following:
During the follow-up libMesh compile, you need to set PETSC_DIR
, that is,
If PETSc is built successfully, you should see some output like the following:
You could optionally check if PETSc works as follows:
PETSc should produce the output like this: