sfepy.parallel.evaluate module

PETSc-related parallel evaluation of problem equations.

class sfepy.parallel.evaluate.PETScParallelEvaluator(problem, pdofs, drange, is_overlap, psol, comm, matrix_hook=None, verbose=False)[source]

The parallel evaluator of the problem equations for PETScNonlinearSolver.

Its methods can be used as the function and Jacobian callbacks of the PETSc SNES (Scalable Nonlinear Equations Solvers).

Notes

Assumes problem.active_only == False.

eval_residual(snes, psol, prhs)[source]
eval_tangent_matrix(snes, psol, pmtx, ppmtx)[source]