50 using U = std::vector<
51 std::variant<std::shared_ptr<const Fd32>, std::shared_ptr<const Fd64>,
52 std::shared_ptr<const Fc64>, std::shared_ptr<const Fc128>>>;
61 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
62 std::string tag, std::shared_ptr<const mesh::Mesh> mesh,
71 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
72 std::string tag, std::shared_ptr<const mesh::Mesh> mesh);
79 ADIOS2Writer(MPI_Comm comm,
const std::filesystem::path& filename,
80 std::string tag,
const U& u);
102 std::unique_ptr<adios2::ADIOS> _adios;
103 std::unique_ptr<adios2::IO> _io;
104 std::unique_ptr<adios2::Engine> _engine;
105 std::shared_ptr<const mesh::Mesh> _mesh;
129 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
130 std::shared_ptr<const mesh::Mesh> mesh);
141 FidesWriter(MPI_Comm comm,
const std::filesystem::path& filename,
142 const ADIOS2Writer::U& u,
162 void write(
double t);
187 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
188 std::shared_ptr<const mesh::Mesh> mesh);
197 VTXWriter(MPI_Comm comm,
const std::filesystem::path& filename,
const U& u);
216 void write(
double t);
This class represents a function in a finite element function space , given by.
Definition: Function.h:43
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:708
ADIOS2Writer(const ADIOS2Writer &)=delete
Copy constructor.
ADIOS2Writer(ADIOS2Writer &&writer)=default
Move constructor.
~ADIOS2Writer()
Destructor.
Definition: ADIOS2Writers.cpp:706
Output of meshes and functions compatible with the Fides Paraview reader, see https://fides....
Definition: ADIOS2Writers.h:113
MeshPolicy
Mesh reuse policy.
Definition: ADIOS2Writers.h:117
@ update
Re-write the mesh to file upon every write of a fem::Function.
@ reuse
Write the mesh to file only the first time a fem::Function is written to file.
void write(double t)
Write data with a given time.
Definition: ADIOS2Writers.cpp:796
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:175
VTXWriter & operator=(VTXWriter &&)=default
Move assignment.
~VTXWriter()=default
Destructor.
void write(double t)
Write data with a given time.
Definition: ADIOS2Writers.cpp:883
VTXWriter(VTXWriter &&file)=default
Move constructor.
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:31