Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 15 of file remove_mofem_meshsets.cpp.
22 PetscBool flg_file = PETSC_FALSE;
23 char mesh_out_file[255] =
"out.h5m";
25 CHKERR PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"Field to vertices options",
27 CHKERR PetscOptionsString(
"-file_name",
"mesh file name",
"",
"mesh.h5m",
29 CHKERR PetscOptionsString(
"-output_file",
"output mesh file name",
"",
30 "out.h5m", mesh_out_file, 255, PETSC_NULL);
36 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
38 pcomm =
new ParallelComm(&moab, PETSC_COMM_WORLD);
48 auto core_log = logging::core::get();
50 LogManager::createSink(LogManager::getStrmWorld(),
"REMOVER"));
51 LogManager::setLog(
"REMOVER");
55 std::vector<std::string> prb_list;
56 for(
auto &it : *prb_ptr)
57 prb_list.push_back(it.getName());
59 for (
auto &it : prb_list) {
60 MOFEM_LOG(
"REMOVER", Sev::inform) <<
"Delete problem " << it;
65 std::vector<std::string> fe_list;
66 for (
auto &it : *fe_ptr)
67 fe_list.push_back(it->getName());
69 for (
auto &it : fe_list) {
71 <<
"Delete finite element " << it;
76 std::vector<std::string> field_list;
77 for (
auto &it : *field_ptr)
78 field_list.push_back(it->getName());
80 for (
auto &it : field_list) {
81 MOFEM_LOG(
"REMOVER", Sev::inform) <<
"Delete field " << it;
85 CHKERR moab.write_file(mesh_out_file);
◆ help
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.