- 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 createQuadraticMesh.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 21 of file createQuadraticMesh.cpp.
24 "Create quadratic order mesh.\n\n"
25 "OpenGeoSys-6 software, version " +
28 "Copyright (c) 2012-2021, OpenGeoSys Community "
29 "(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");
38 TCLAP::SwitchArg add_centre_node_arg(
"c",
"add-centre-node",
39 "add centre node",
false);
40 cmd.add(add_centre_node_arg);
41 cmd.parse(argc, argv);
43 std::unique_ptr<MeshLib::Mesh> mesh(
50 INFO(
"Create a quadratic order mesh");
52 *mesh, add_centre_node_arg.getValue()));
54 INFO(
"Save the new mesh into a file");
void INFO(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< Mesh > createQuadraticOrderMesh(Mesh const &linear_mesh, bool const add_centre_node)
References MeshLib::createQuadraticOrderMesh(), INFO(), GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), and MeshLib::IO::writeMeshToFile().