19 #include <vtkXMLWriter.h>
29 std::string
const& file_name);
42 int dataMode = vtkXMLWriter::Appended,
43 bool compressed =
false);
56 bool writeToFile(std::filesystem::path
const& file_path);
63 template <
typename UnstructuredGr
idWriter>
64 bool writeVTU(std::string
const& file_name,
const int num_partitions = 1,
74 int const data_mode = vtkXMLWriter::Appended);
Implementation of the VtuInterface class.
Reads and writes VtkXMLUnstructuredGrid-files (vtu) to and from OGS data structures....
static MeshLib::Mesh * readVTKFile(std::string const &file_name)
static MeshLib::Mesh * readVTUFile(std::string const &file_name)
VtuInterface(const MeshLib::Mesh *mesh, int dataMode=vtkXMLWriter::Appended, bool compressed=false)
Provide the mesh to write and set if compression should be used.
bool writeVTU(std::string const &file_name, const int num_partitions=1, const int rank=1)
bool writeToFile(std::filesystem::path const &file_path)
const MeshLib::Mesh * _mesh
int writeVtu(MeshLib::Mesh const &mesh, std::string const &file_name, int const data_mode)
std::string getVtuFileNameForPetscOutputWithoutExtension(std::string const &file_name)