v0.14.0
Classes | Namespaces | Functions
SnesCtx.hpp File Reference

Context for PETSc SNES, i.e. nonlinear solver. More...

Go to the source code of this file.

Classes

struct  MoFEM::SnesCtx
 Interface for nonlinear (SNES) solver. More...
 

Namespaces

 MoFEM
 implementation of Data Operators for Forces and Sources
 

Functions

PetscErrorCode MoFEM::SnesRhs (SNES snes, Vec x, Vec f, void *ctx)
 This is MoFEM implementation for the right hand side (residual vector) evaluation in SNES solver. More...
 
PetscErrorCode MoFEM::SnesMat (SNES snes, Vec x, Mat A, Mat B, void *ctx)
 This is MoFEM implementation for the left hand side (tangent matrix) evaluation in SNES solver. More...
 
MoFEMErrorCode MoFEM::SnesMoFEMSetAssemblyType (SNES snes, MatAssemblyType type)
 Set assembly type at the end of SnesMat. More...
 
MoFEMErrorCode MoFEM::SnesMoFEMSetBehavior (SNES snes, MoFEMTypes bh)
 Set behavior if finite element in sequence does not exist. More...
 
MoFEMErrorCode MoFEM::MoFEMSNESMonitorFields (SNES snes, PetscInt its, PetscReal fgnorm, SnesCtx *snes_ctx)
 Sens monitor printing residual field by field. More...
 

Detailed Description

Context for PETSc SNES, i.e. nonlinear solver.

Definition in file SnesCtx.hpp.