15#include <tclap/CmdLine.h>
25int main(
int argc,
char* argv[])
28 "Converts VTK mesh into OGS mesh.\n\n"
29 "OpenGeoSys-6 software, version " +
32 "Copyright (c) 2012-2024, OpenGeoSys Community "
33 "(http://www.opengeosys.org)",
35 TCLAP::ValueArg<std::string> mesh_in(
36 "i",
"mesh-input-file",
37 "the name of the file containing the input mesh",
true,
"",
38 "file name of input mesh");
40 TCLAP::ValueArg<std::string> mesh_out(
41 "o",
"mesh-output-file",
42 "the name of the file the mesh will be written to",
true,
"",
43 "file name of output mesh");
45 cmd.parse(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