15#include <tclap/CmdLine.h>
28int main(
int argc,
char* argv[])
31 "Converts VTK mesh into OGS mesh.\n\n"
32 "OpenGeoSys-6 software, version " +
35 "Copyright (c) 2012-2024, OpenGeoSys Community "
36 "(http://www.opengeosys.org)",
38 TCLAP::ValueArg<std::string> mesh_in(
39 "i",
"mesh-input-file",
40 "the name of the file containing the input mesh",
true,
"",
41 "file name of input mesh");
43 TCLAP::ValueArg<std::string> mesh_out(
44 "o",
"mesh-output-file",
45 "the name of the file the mesh will be written to",
true,
"",
46 "file name of output mesh");
48 cmd.parse(argc, argv);
51 MPI_Init(&argc, &argv);
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
Definition of the MeshIO class.
Definition of the Mesh class.
int main(int argc, char *argv[])
Implementation of the VtuInterface class.
std::string writeToString()
Writes the object to a string.
Interface for handling mesh files from OGS-5 and below. (*.msh files)
void setMesh(const MeshLib::Mesh *mesh)
Set mesh for writing.
static MeshLib::Mesh * readVTUFile(std::string const &file_name, bool const compute_element_neighbors=false)
std::size_t getNumberOfNodes() const
Get the number of nodes.
std::size_t getNumberOfElements() const
Get the number of elements.
int writeStringToFile(std::string_view content, std::filesystem::path const &file_path)
GITINFOLIB_EXPORT const std::string ogs_version