Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
static int | debug = 1 |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
- Examples
- node_merge.cpp.
Definition at line 18 of file node_merge.cpp.
27 MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
30 PetscBool flg = PETSC_TRUE;
32 #if PETSC_VERSION_GE(3, 6, 4)
39 if (flg != PETSC_TRUE) {
40 SETERRQ(PETSC_COMM_SELF, 1,
"*** ERROR -my_file (MESH FILE NEEDED)");
61 for (; ii < 2; ii++) {
69 ->getEntitiesByTypeAndRefLevel(bit_level0,
BitRefLevel().set(),
71 Range::iterator eit = edges.begin();
75 CHKERR moab.get_connectivity(*eit, conn, num_nodes,
true);
80 CHKERR moab.create_meshset(MESHSET_SET, meshset_level1);
82 ->getEntitiesByTypeAndRefLevel(bit_level1,
BitRefLevel().set(), MBTET,
85 std::ostringstream ss;
86 ss <<
"node_merger_" << ii <<
".vtk";
89 CHKERR moab.write_file(ss.str().c_str(),
"VTK",
"", &meshset_level1, 1);
90 bit_level0 = bit_level1;
97 std::cout << tets << std::endl;
98 if (tets.size() != 10) {
100 "diffrent number of tets than expected = %u", tets.size());
◆ debug
◆ help
MoFEMErrorCode mergeNodes(EntityHandle father, EntityHandle mother, Range &out_tets, Range *tets_ptr=NULL, const bool only_if_improve_quality=false, const double move=0, const int line_search=0, Tag th=NULL, const int verb=0)
merge nodes which sharing edge
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.