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 16 of file remove_mofem_meshsets.cpp.
23 PetscBool flg_file = PETSC_FALSE;
24 char mesh_out_file[255] =
"out.h5m";
26 CHKERR PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"Field to vertices options",
28 CHKERR PetscOptionsString(
"-file_name",
"mesh file name",
"",
"mesh.h5m",
30 CHKERR PetscOptionsString(
"-output_file",
"output mesh file name",
"",
31 "out.h5m", mesh_out_file, 255, PETSC_NULL);
37 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
39 pcomm =
new ParallelComm(&moab, PETSC_COMM_WORLD);
49 auto core_log = logging::core::get();
51 LogManager::createSink(LogManager::getStrmWorld(),
"REMOVER"));
52 LogManager::setLog(
"REMOVER");
56 std::vector<std::string> prb_list;
57 for(
auto &it : *prb_ptr)
58 prb_list.push_back(it.getName());
60 for (
auto &it : prb_list) {
61 MOFEM_LOG(
"REMOVER", Sev::inform) <<
"Delete problem " << it;
66 std::vector<std::string> fe_list;
67 for (
auto &it : *fe_ptr)
68 fe_list.push_back(it->getName());
70 for (
auto &it : fe_list) {
72 <<
"Delete finite element " << it;
77 std::vector<std::string> field_list;
78 for (
auto &it : *field_ptr)
79 field_list.push_back(it->getName());
81 for (
auto &it : field_list) {
82 MOFEM_LOG(
"REMOVER", Sev::inform) <<
"Delete field " << it;
86 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.