24 std::shared_ptr<GridBase<T>> m_simulation_grid{};
25 std::shared_ptr<ShapeBase<T>> m_simulation_shape{};
27 void loadGrid() {
throw std::runtime_error(
"Not implemented currently.\n"); }
34 std::shared_ptr<GridBase<T>>
getGridPtr() {
return m_simulation_grid; }
60 m_simulation_grid = std::make_shared<GridOneDim<T>>(sim, m_simulation_shape);
64 throw std::runtime_error(
"Creation of 2D and 3D grids is not yet supported!\n");
Dimension
Definition CoreEnums.h:8
constexpr Dimension setDimension(const std::string &dimension)
Definition CoreEnums.h:14
Concrete implementation of a matrix class representing a Compressed Sparse Rows (CSR) matrix....
Definition CsrMatrix.h:35
Class that manages the creation of the GridBase object.
Definition GridFactory.h:21
GridFactory(SimulationClassBase< T > *sim, std::shared_ptr< ShapeBase< T > > m_simulation_shape, const std::string &dimension)
Constructor for the GridFactory class. Structurally identical to the ShapeFactory class.
Definition GridFactory.h:42
std::shared_ptr< GridBase< T > > getGridPtr()
Definition GridFactory.h:34