- Copyright
- Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) Distributed under a Modified BSD License. See accompanying file LICENSE.txt or http://www.opengeosys.org/project/license
Definition in file convertToLinearMesh.cpp.
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 22 of file convertToLinearMesh.cpp.
25 "Convert a non-linear mesh to a linear mesh.\n\n"
26 "OpenGeoSys-6 software, version " +
29 "Copyright (c) 2012-2021, OpenGeoSys Community "
30 "(http://www.opengeosys.org)",
32 TCLAP::ValueArg<std::string> input_arg(
33 "i",
"input-mesh-file",
"input mesh file",
true,
"",
"string");
35 TCLAP::ValueArg<std::string> output_arg(
36 "o",
"output-mesh-file",
"output mesh file",
true,
"",
"string");
39 cmd.parse(argc, argv);
41 std::unique_ptr<MeshLib::Mesh> mesh(
47 if (!mesh->hasNonlinearElement())
49 ERR(
"The input mesh is linear. Exit.");
53 INFO(
"Converting to a linear order mesh");
54 std::unique_ptr<MeshLib::Mesh> new_mesh(
57 INFO(
"Save the new mesh into a file");
void INFO(char const *fmt, Args const &... args)
void ERR(char const *fmt, Args const &... args)
GITINFOLIB_EXPORT const std::string ogs_version
MeshLib::Mesh * readMeshFromFile(const std::string &file_name)
int writeMeshToFile(const MeshLib::Mesh &mesh, std::filesystem::path const &file_path, [[maybe_unused]] std::set< std::string > variable_output_names)
std::unique_ptr< MeshLib::Mesh > convertToLinearMesh(MeshLib::Mesh const &org_mesh, std::string const &new_mesh_name)
References MeshLib::convertToLinearMesh(), ERR(), INFO(), GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), and MeshLib::IO::writeMeshToFile().