Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 28 of file meshplot.C.
37 if (argc < 3 || argc > 4)
39 (
"Usage: " << argv[0] <<
40 " inputmesh [inputsolution] outputplot");
43 START_LOG(
"mesh.read()",
"main");
45 STOP_LOG(
"mesh.read()",
"main");
51 START_LOG(
"es.read()",
"main");
52 std::string solnname = argv[2];
59 STOP_LOG(
"es.read()",
"main");
60 libMesh::out <<
"Loaded solution " << solnname << std::endl;
64 START_LOG(
"write_equation_systems()",
"main");
65 std::string outputname(argv[argc-1]);
66 if ((outputname.find(
".xda") != std::string::npos) ||
67 (outputname.find(
".xdr") != std::string::npos))
70 es.write(
"soln-"+outputname);
74 STOP_LOG(
"write_equation_systems()",
"main");
76 libMesh::out <<
"Wrote output " << outputname << std::endl;
References libMesh::TriangleWrapper::init(), mesh, libMesh::out, libMesh::MeshBase::print_info(), libMesh::MeshBase::read(), libMesh::EquationSystems::READ_ADDITIONAL_DATA, libMesh::EquationSystems::READ_BASIC_ONLY, libMesh::EquationSystems::READ_DATA, libMesh::EquationSystems::READ_HEADER, libMesh::MeshBase::write(), and libMesh::NameBasedIO::write_equation_systems().
virtual void read(const std::string &name, void *mesh_data=nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false)=0
Interfaces for reading/writing a mesh to/from a file.
virtual void write_equation_systems(const std::string &filename, const EquationSystems &es, const std::set< std::string > *system_names=nullptr) override
This method implements writing a mesh with data to a specified file where the data is taken from the ...