10#include <dolfinx/common/MPI.h>
11#include <dolfinx/common/types.h>
25template <dolfinx::scalar T, std::
floating_po
int U>
31template <std::
floating_po
int T>
51 VTKFile(MPI_Comm comm,
const std::filesystem::path& filename,
52 std::string_view file_mode);
69 template <std::
floating_po
int U>
88 template <dolfinx::scalar T, std::
floating_po
int U = scalar_value_t<T>>
94 std::unique_ptr<pugi::xml_document> _pvd_xml;
96 std::filesystem::path _filename;
A duplicate MPI communicator and manage lifetime of the communicator.
Definition MPI.h:45
void write(const mesh::Mesh< U > &mesh, double t=0.0)
Write a mesh to file.
Definition VTKFile.cpp:768
void close()
Close file.
Definition VTKFile.cpp:736
~VTKFile()
Destructor.
Definition VTKFile.cpp:726
void flush()
Flushes XML files to disk.
Definition VTKFile.cpp:753
VTKFile(MPI_Comm comm, const std::filesystem::path &filename, std::string_view file_mode)
Create VTK file.
Definition VTKFile.cpp:714
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition Mesh.h:23
Finite element method functionality.
Definition assemble_expression_impl.h:24
Support for file IO.
Definition ADIOS2Writers.h:43
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32