16 #ifndef MFEM_ADIOS2STREAM
17 #define MFEM_ADIOS2STREAM
19 #include "../config/config.hpp"
21 #ifdef MFEM_USE_ADIOS2
41 class ADIOS2DataCollection;
83 const std::string engine_type =
"BPFile");
96 const std::string engine_type =
"BPFile");
107 void SetParameters(
const std::map<std::string, std::string>& parameters =
108 std::map<std::string, std::string>());
116 void SetParameter(
const std::string key,
const std::string value) noexcept;
128 void SetTime(
const double time);
157 void Save(
const GridFunction& grid_function,
const std::string& variable_name,
162 const std::string name;
168 std::unique_ptr<adios2::ADIOS> adios;
174 adios2::Engine engine;
177 bool transient =
false;
181 bool active_step =
false;
184 bool is_mesh_defined =
false;
189 bool ordering_by_node =
false;
195 int refinement_level = 1;
198 size_t refined_mesh_nvertices = 0;
201 size_t refined_mesh_nelements = 0;
204 std::set<std::string> point_data_variables;
211 int32_t GLVISToVTKType(
const int glvisType)
const noexcept;
215 std::string VTKSchema() const noexcept;
222 bool IsConstantElementType(const
Array<
Element*>& elements ) const noexcept;
235 #endif // MFEM_USE_ADIOS2
void Save(const GridFunction &grid_function, const std::string &variable_name, const data_type type)
Class for grid function - Vector with associated FE space.
void SetTime(const double time)
void Print(const Mesh &mesh, const adios2stream::mode print_mode=mode::sync)
void SetParameter(const std::string key, const std::string value) noexcept
void SetRefinementLevel(const int level) noexcept
void SetCycle(const int cycle)
size_t CurrentStep() const
void SetParameters(const std::map< std::string, std::string > ¶meters=std::map< std::string, std::string >())
adios2stream(const std::string &name, const openmode mode, MPI_Comm comm, const std::string engine_type="BPFile")
Abstract data type element.