static char help[] =
"...\n\n";
int main(
int argc,
char *argv[]) {
try {
int rank;
MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
PetscBool flg = PETSC_TRUE;
#if PETSC_VERSION_GE(3, 6, 4)
255, &flg);
#else
#endif
if (flg != PETSC_TRUE) {
SETERRQ(PETSC_COMM_SELF, 1, "*** ERROR -my_file (MESH FILE NEEDED)");
}
const char *option;
option = "";
bit_level0.set(0);
0, 3, bit_level0);
int ii = 1;
for (; ii < 2; ii++) {
bit_level1.set(ii);
->getEntitiesByTypeAndRefLevel(bit_level0,
BitRefLevel().set(),
MBEDGE, edges);
Range::iterator eit = edges.begin();
int num_nodes;
CHKERR moab.get_connectivity(*eit, conn, num_nodes,
true);
bit_level0);
CHKERR moab.create_meshset(MESHSET_SET, meshset_level1);
->getEntitiesByTypeAndRefLevel(bit_level1,
BitRefLevel().set(), MBTET,
meshset_level1);
std::ostringstream ss;
ss << "node_merger_" << ii << ".vtk";
CHKERR moab.write_file(ss.str().c_str(),
"VTK",
"", &meshset_level1, 1);
bit_level0 = bit_level1;
}
std::cout << tets << std::endl;
if (tets.size() != 10) {
"diffrent number of tets than expected = %u", tets.size());
}
}
return 0;
}