24 std::shared_ptr<GridBase<T>> m_simulation_grid{};
25 std::shared_ptr<ShapeBase<T>> m_simulation_shape{};
29 std::cerr <<
"[GridFactory]: Not implemented currently.\n";
30 throw std::runtime_error(
31 static_cast<std::string
>(
"[GridFactory]: Not implemented currently."));
39 std::shared_ptr<GridBase<T>>
getGridPtr() {
return m_simulation_grid; }
65 m_simulation_grid = std::make_shared<GridOneDim<T>>(sim, m_simulation_shape);
69 std::cerr <<
"[GridFactory]: Creation of 2D and 3D grids is not yet supported!\n";
70 throw std::runtime_error(
static_cast<std::string
>(
71 "[GridFactory]: Creation of 2D and 3D grids is not yet supported!"));
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:37
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:47
std::shared_ptr< GridBase< T > > getGridPtr()
Definition GridFactory.h:39