15#include <tclap/CmdLine.h>
27int main(
int argc,
char* argv[])
30 "Converts VTK mesh into OGS mesh.\n\n"
31 "OpenGeoSys-6 software, version " +
34 "Copyright (c) 2012-2025, OpenGeoSys Community "
35 "(http://www.opengeosys.org)",
37 TCLAP::ValueArg<std::string> mesh_in(
38 "i",
"mesh-input-file",
39 "Input (.vtk). The name of the file containing the input mesh",
true,
42 TCLAP::ValueArg<std::string> mesh_out(
43 "o",
"mesh-output-file",
44 "Output (.msh). The name of the file the mesh will be written to",
true,
48 cmd.add(log_level_arg);
49 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)
TCLAP::ValueArg< std::string > makeLogLevelArg()
void initOGSLogger(std::string const &log_level)
GITINFOLIB_EXPORT const std::string ogs_version