12 #ifndef GLVIS_STREAM_READER_HPP
13 #define GLVIS_STREAM_READER_HPP
24 std::unique_ptr<mfem::Mesh>
mesh;
25 std::unique_ptr<mfem::GridFunction>
grid_f;
36 int ReadStream(std::istream &is,
const std::string &data_type);
52 std::unique_ptr<mfem::GridFunction>
55 #endif // GLVIS_STREAM_READER_HPP
std::unique_ptr< GridFunction > ProjectVectorFEGridFunction(std::unique_ptr< GridFunction > gf)
void Extrude1DMeshAndSolution()
Helper function for visualizing 1D data.
std::unique_ptr< mfem::GridFunction > grid_f
thread_local VisualizationSceneScalarData * vs
void SetMeshSolution()
Set a (checkerboard) solution when only the mesh is given.
bool SetNewMeshAndSolution(StreamState new_state, VisualizationScene *vs)
std::unique_ptr< mfem::Mesh > mesh
int ReadStream(std::istream &is, const std::string &data_type)