Solvers, field splits, and MPI¶
All solver dictionaries pass straight through to Firedrake. The external spatial operators supply matrix-free Jacobian actions:
solver_parameters = {
"snes_type": "ksponly",
"mat_type": "matfree",
"ksp_type": "gmres",
"pc_type": "python",
"pc_python_type": "firedrake.MassInvPC",
}
Auxiliary-ODE field splits¶
With AuxiliaryODE, stepper.appctx["yonderdrake"] gives the physical field
index, the mode indices, and stable names. Group field zero separately from
fields \(1..m\), as in
caputo_auxiliary_ode.py.
Production runs should replace that demo’s small-problem LU blocks with
scalable preconditioners.
Spectral shifts¶
A reasonable starting point for the shifted solves:
shift_solver_parameters = {
"ksp_type": "cg",
"ksp_rtol": 1.0e-9,
"pc_type": "gamg",
}
MPI execution¶
All time and space operator families support MPI execution. Reference backends explicitly marked as serial are the exceptions. The head-model gallery demos and their data are covered in Head-model data and parallel runs.
Riesz under MPI¶
Both matfree and hmatrix support MPI. The dense reference backend is
serial. The mass solve is configurable and defaults to CG/Jacobi.
Periodic Fourier under MPI¶
The periodic Fourier operator supports MPI in 1D, 2D, and 3D.
Storage for each method and operator is tabulated in Storage.