16 CHKERR JsonConfigManager::setMeshFileFromJson();
17 char mesh_file[PETSC_MAX_PATH_LEN] =
"";
19 CHKERR PetscOptionsGetString(
nullptr,
nullptr,
"-file_name", mesh_file,
20 sizeof(mesh_file), &found);
23 "Missing JSON mesh fixture");
24 CHKERR DMRegister_MoFEM(
"DMMOFEM");
26 auto *parallel =
new ParallelComm(&moab, PETSC_COMM_WORLD);
27 CHKERR CommInterface::loadFileRootProcAllRestDistributed(moab, mesh_file,
35 auto meshset = get_temp_meshset_ptr(moab);
36 const auto part = CommInterface::getPartEntities(moab, parallel->rank());
37 CHKERR moab.add_entities(*meshset, part);
38 for (
const int dim : {0, 1, 2}) {
40 CHKERR moab.get_adjacencies(part.subset_by_dimension(
SPACE_DIM), dim,
false,
41 adjacent, moab::Interface::UNION);
42 CHKERR moab.add_entities(*meshset, adjacent);
44 CHKERR ep.createCrackSurfaceMeshset();
45 CHKERR ep.getSpatialDispBc();
46 CHKERR ep.getSpatialRotationBc();
47 CHKERR ep.getSpatialTractionBc();
48 CHKERR ep.getSpatialTractionFreeBc();
49 CHKERR ep.getExternalStrain();
50 CHKERR ep.setBlockTagsOnSkin();
51 CHKERR ep.createExchangeVectors(Sev::inform);
53 CHKERR ep.resolveDissipationEntities(*meshset);
54 CHKERR ep.addFields(*meshset);
55 CHKERR ep.projectGeometry(*meshset, 0.);
56 CHKERR ep.addVolumeFiniteElement(*meshset);
57 CHKERR ep.addBoundaryFiniteElement(*meshset);