50 using U = std::vector<
51 std::variant<std::shared_ptr<const Fdr>, std::shared_ptr<const Fdc>>>;
60 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
61 const std::string& tag,
62 const std::shared_ptr<const mesh::Mesh>& mesh,
const U& u);
70 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
71 const std::string& tag, std::shared_ptr<const mesh::Mesh> mesh);
78 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
79 const std::string& tag,
const U& u);
101 std::unique_ptr<adios2::ADIOS> _adios;
102 std::unique_ptr<adios2::IO> _io;
103 std::unique_ptr<adios2::Engine> _engine;
104 std::shared_ptr<const mesh::Mesh> _mesh;
120 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
121 std::shared_ptr<const mesh::Mesh> mesh);
129 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
149 void write(
double t);
167 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
168 std::shared_ptr<const mesh::Mesh> mesh);
177 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
const U& u);
196 void write(
double t);
This class represents a function in a finite element function space , given by.
Definition: Function.h:45
Base class for ADIOS2-based writers.
Definition: ADIOS2Writers.h:43
ADIOS2Writer & operator=(ADIOS2Writer &&writer)=default
Move assignment.
void close()
Close the file.
Definition: ADIOS2Writers.cpp:694
ADIOS2Writer(const ADIOS2Writer &)=delete
Copy constructor.
ADIOS2Writer(ADIOS2Writer &&writer)=default
Move constructor.
~ADIOS2Writer()
Destructor.
Definition: ADIOS2Writers.cpp:692
std::vector< std::variant< std::shared_ptr< const Fdr >, std::shared_ptr< const Fdc > >> U
Typedefs.
Definition: ADIOS2Writers.h:51
Output of meshes and functions compatible with the Fides Paraview reader, see https://fides....
Definition: ADIOS2Writers.h:112
FidesWriter(MPI_Comm comm, const std::filesystem::path &filename, std::shared_ptr< const mesh::Mesh > mesh)
Create Fides writer for a mesh.
Definition: ADIOS2Writers.cpp:703
void write(double t)
Write data with a given time.
Definition: ADIOS2Writers.cpp:780
FidesWriter(FidesWriter &&file)=default
Move constructor.
~FidesWriter()=default
Destructor.
FidesWriter & operator=(FidesWriter &&)=default
Move assignment.
Writer for meshes and functions using the ADIOS2 VTX format, see https://adios2.readthedocs....
Definition: ADIOS2Writers.h:157
~VTXWriter()=default
Destructor.
void write(double t)
Write data with a given time.
Definition: ADIOS2Writers.cpp:862
VTXWriter(VTXWriter &&file)=default
Move constructor.
VTXWriter & operator=(VTXWriter &&)=default
Move assignment.
VTXWriter(MPI_Comm comm, const std::filesystem::path &filename, std::shared_ptr< const mesh::Mesh > mesh)
Create a VTX writer for a mesh. This format supports arbitrary degree meshes.
Definition: ADIOS2Writers.cpp:796
Finite element method functionality.
Definition: assemble_matrix_impl.h:25
Support for file IO.
Definition: ADIOS2Writers.h:39
Mesh data structures and algorithms on meshes.
Definition: DofMap.h:30