matto.utility#
Solver options and their defaults, the Newton wrapper for the state problem, and the gather of a parallel field into serial ordering for the saved arrays.
- matto.utility.apply_petsc_options(petsc_object, petsc_options, prefix=None)[source]#
Apply a dict of PETSc options to one prefixed solver object.
- matto.utility.resolve_solver_options(fem_options)[source]#
Return
{state, adjoint, filter}solver settings with defaults.Accepts
fem_options["solver_options"]. If only the olderfem_options["petsc_options"]key is present, that dict is used for both the state and filter solvers.
- class matto.utility.WrapNonlinearProblem(u, R, bcs=None, solver_options=None)[source]#
Bases:
object