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);
85 template <std::
floating_po
int U>
104 template <dolfinx::scalar T, std::
floating_po
int U = scalar_value_t<T>>
110 std::unique_ptr<pugi::xml_document> _pvd_xml;
112 std::filesystem::path _filename;
A duplicate MPI communicator and manage lifetime of the communicator.
Definition MPI.h:47
VTKFile & operator=(VTKFile &&file) noexcept
void write(const mesh::Mesh< U > &mesh, double t=0.0)
Write a mesh to file.
Definition VTKFile.cpp:772
void close()
Close file.
Definition VTKFile.cpp:740
~VTKFile()
Destructor.
Definition VTKFile.cpp:730
void flush()
Flushes XML files to disk.
Definition VTKFile.cpp:757
VTKFile(VTKFile &&file) noexcept
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:25
Finite element method functionality.
Definition assemble_expression_impl.h:22
Support for file IO.
Definition ADIOS2Writers.h:43
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32