DOLFIN-X
DOLFIN-X C++ interface
Public Member Functions | List of all members
dolfinx::nls::NonlinearProblem Class Referenceabstract

This is a base class for nonlinear problems which can return the nonlinear function F(u) and its Jacobian J = dF(u)/du. More...

#include <NonlinearProblem.h>

Public Member Functions

 NonlinearProblem ()=default
 Constructor.
 
virtual ~NonlinearProblem ()
 Destructor.
 
virtual void form (Vec)
 Function called by Newton solver before requesting F, J or J_pc. This can be used to compute F, J and J_pc together. Note: the vector x is not const as this function is commonly used to update ghost entries before assembly.
 
virtual Vec F (const Vec x)=0
 Compute F at current point x.
 
virtual Mat J (const Vec x)=0
 Compute J = F' at current point x.
 
virtual Mat P (const Vec)
 Compute J_pc used to precondition J. Not implementing this or leaving P empty results in system matrix A being used to construct preconditioner.
 

Detailed Description

This is a base class for nonlinear problems which can return the nonlinear function F(u) and its Jacobian J = dF(u)/du.


The documentation for this class was generated from the following file: