Add meshsets.
More...
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
Add meshsets.
Definition in file add_meshsets.cpp.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 14 of file add_meshsets.cpp.
23 char mesh_out_file[255] =
"out.h5m";
24 PetscBool flg_file = PETSC_FALSE;
25 ierr = PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"none",
"none");
27 CHKERR PetscOptionsString(
"-my_file",
"mesh file name",
"",
"mesh.h5m",
29 CHKERR PetscOptionsString(
"-output_file",
"output mesh file name",
"",
30 "out.h5m", mesh_out_file, 255, PETSC_NULL);
31 ierr = PetscOptionsEnd();
38 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
40 pcomm =
new ParallelComm(&moab, PETSC_COMM_WORLD);
53 << "Print all meshsets (old and added from meshsets "
54 "configurational file)";
55 for (auto cit = meshsets_interface_ptr->getBegin();
56 cit != meshsets_interface_ptr->getEnd(); cit++)
59 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.