43 explicit MeshIO(
const std::string &mesh_file,
double scale_factor = 1.0);
60 [[nodiscard]] mfem::Mesh &
GetMesh() const noexcept;
void LinearRescale(double scale_factor) const
Rescale the mesh by a linear factor.
~MeshIO()
Destructor for the MeshIO class.
std::string mesh_file_
Filename of the mesh file.
MeshIO(const std::string &mesh_file, double scale_factor=1.0)
Constructor that initializes the MeshIO object with a mesh file.
bool IsLoaded() const
Check if the mesh is loaded.
mfem::Mesh & GetMesh() const noexcept
Get the mesh object.
std::unique_ptr< mfem::Mesh > m_mesh
The mesh object.
bool loaded_
Flag to indicate if the mesh is loaded.