MoCSI API Reference
Loading...
Searching...
No Matches
GenericSolver.h
Go to the documentation of this file.
1#ifndef GENERIC_SOLVER_H
2#define GENERIC_SOLVER_H
3
4#include <memory>
5#include <valarray>
6
7#include "MatrixManager.h"
9
10template <typename T>
12{
13 protected:
15 std::shared_ptr<MatrixManager<T>> m_matrix_manager{};
16
17 public:
19 std::shared_ptr<MatrixManager<T>> matrix_manager_ptr);
20
21 virtual void solveMatrixSystem(std::string_view field_name) = 0;
22
23 virtual ~SolverInterface() = default;
24};
25
26template <typename T>
32
33#endif
Concrete implementation of a matrix class representing a Compressed Sparse Rows (CSR) matrix....
Definition CsrMatrix.h:37
Definition GenericSolver.h:12
virtual ~SolverInterface()=default
std::shared_ptr< MatrixManager< T > > m_matrix_manager
Definition GenericSolver.h:15
SimulationClassBase< T > * sim
Definition GenericSolver.h:14
SolverInterface(SimulationClassBase< T > *sim, std::shared_ptr< MatrixManager< T > > matrix_manager_ptr)
Definition GenericSolver.h:27
virtual void solveMatrixSystem(std::string_view field_name)=0