deltaFlow
SolverFactory Class Referencefinal

Creates ISolver instances for a given SolverType. More...

#include <SolverFactory.H>

Static Public Member Functions

static std::unique_ptr< ISolvercreate (SolverType type)
 Construct a concrete solver for the given solver type.
 

Detailed Description

Creates ISolver instances for a given SolverType.

Definition at line 40 of file SolverFactory.H.

Member Function Documentation

◆ create()

std::unique_ptr< ISolver > SolverFactory::create ( SolverType  type)
static

Construct a concrete solver for the given solver type.

Parameters
typeRequested solver type.
Returns
Owning pointer to a new ISolver instance.

Definition at line 27 of file SolverFactory.C.

27 {
28 switch (type) {
30 return std::make_unique<GaussSeidel>();
32 default:
33 return std::make_unique<NewtonRaphson>();
34 }
35}
@ NewtonRaphson
Newton-Raphson iterative method.
@ GaussSeidel
Gauss-Seidel iterative method.

References GaussSeidel, and NewtonRaphson.

Here is the caller graph for this function:

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