15 throw std::logic_error(
"chi_mesh::MeshHandler::GetGrid: Volume mesher "
16 "undefined. This usually means a grid is not defined"
17 " or is incomplete.");
21 if (grid_ptr ==
nullptr)
22 throw std::logic_error(
"chi_mesh::MeshHandler::GetGrid: Volume mesher has "
23 "no grid available. Make sure the volume mesher has "
34 if (surface_mesher_ ==
nullptr)
35 throw std::logic_error(
"chi_mesh::MeshHandler::GetSurfaceMesher: "
36 "Surface mesher undefined This usually means a "
37 "grid is not defined or is incomplete.");
38 return *surface_mesher_;
46 if (volume_mesher_ ==
nullptr)
47 throw std::logic_error(
"chi_mesh::MeshHandler::GetVolumeMesher: "
48 "Volume mesher undefined This usually means a "
49 "grid is not defined or is incomplete.");
50 return *volume_mesher_;
58 if (surface_mesher_ ==
nullptr)
59 throw std::logic_error(
"chi_mesh::MeshHandler::GetSurfaceMesher: "
60 "Surface mesher undefined This usually means a "
61 "grid is not defined or is incomplete.");
62 return *surface_mesher_;
69 if (volume_mesher_ ==
nullptr)
70 throw std::logic_error(
"chi_mesh::MeshHandler::GetVolumeMesher: "
71 "Volume mesher undefined This usually means a "
72 "grid is not defined or is incomplete.");
73 return *volume_mesher_;
chi_mesh::SurfaceMesher & GetSurfaceMesher()
std::shared_ptr< chi_mesh::VolumeMesher > volume_mesher_
chi_mesh::MeshContinuumPtr & GetGrid() const
chi_mesh::VolumeMesher & GetVolumeMesher()
std::shared_ptr< MeshContinuum > MeshContinuumPtr