Class LinearSolver
Defined in File linear_solver.h
Inheritance Relationships
Derived Types
public opensn::LinearEigenSolver(Class LinearEigenSolver)public opensn::LinearSystemSolver(Class LinearSystemSolver)
Class Documentation
-
class LinearSolver
Subclassed by opensn::LinearEigenSolver, opensn::LinearSystemSolver
Public Functions
-
virtual ~LinearSolver() = default
-
inline virtual void Setup()
Set up the linaer solver.
-
virtual void Solve() = 0
Solve the system.
-
inline virtual void ReleaseWorkspace()
Frees the storage that Setup() and Solve() allocate.
The settings are kept. The next Setup() or Solve() allocates the storage again, so a later solve gives the same result. The default implementation frees nothing.
-
inline std::shared_ptr<LinearSolverContext> GetContext()
Protected Attributes
-
std::shared_ptr<LinearSolverContext> context_ptr_
-
virtual ~LinearSolver() = default