IBAMR  IBAMR version 0.19.
Public Member Functions | List of all members
SAMRAI::solv::NonlinearSolverStrategy< DIM > Class Template Referenceabstract

Abstract base class defining interface between an algs::ImplicitIntegrator object and a nonlinear solver used to advance the solution in time. More...

#include <NonlinearSolverStrategy.h>

Public Member Functions

 NonlinearSolverStrategy ()
 
virtual ~NonlinearSolverStrategy ()
 
virtual void initialize (const tbox::Pointer< SAMRAIVectorReal< DIM, double > > solution)=0
 
virtual int solve ()=0
 

Detailed Description

template<int DIM>
class SAMRAI::solv::NonlinearSolverStrategy< DIM >

The interface follows the Strategy design pattern. The methods declared in the interface are provided in a concrete solver derived from this base class.

See also
algs::ImplicitIntegrator

Constructor & Destructor Documentation

◆ NonlinearSolverStrategy()

Empty constructor for algs::NonlinearSolverStrategy.

◆ ~NonlinearSolverStrategy()

template<int DIM>
virtual SAMRAI::solv::NonlinearSolverStrategy< DIM >::~NonlinearSolverStrategy ( )
virtual

Empty constructor for algs::NonlinearSolverStrategy.

Member Function Documentation

◆ initialize()

template<int DIM>
virtual void SAMRAI::solv::NonlinearSolverStrategy< DIM >::initialize ( const tbox::Pointer< SAMRAIVectorReal< DIM, double > >  solution)
pure virtual

Initialize the solver state. The vector argument represents the solution of the nonlinear system. In general, this routine must be called before the solve() routine is invoked.

◆ solve()

template<int DIM>
virtual int SAMRAI::solv::NonlinearSolverStrategy< DIM >::solve ( )
pure virtual

Solve the nonlinear problem and return the integer code defined by the particular nonlinear solver package in use (e.g., indicating success or failure of solution process). In general, the initialize() routine must be called before this solve function.


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