static char help[] =
"...\n\n";
int main(
int argc,
char *argv[]) {
try {
PetscBool flg_file = PETSC_FALSE;
ierr = PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"none",
"none");
CHKERR PetscOptionsString(
"-my_file",
"mesh file name",
"",
"mesh.h5m",
ierr = PetscOptionsEnd();
ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
if (pcomm == NULL)
pcomm = new ParallelComm(&moab, PETSC_COMM_WORLD);
const char *option;
option = "";
if (flg_file != PETSC_TRUE) {
SETERRQ(PETSC_COMM_SELF, 1, "*** ERROR -my_file (MESH FILE NEEDED)");
}
MeshsetsManager *meshsets_manager;
CHKERR meshsets_manager->setMeshsetFromFile();
for (auto &cit : meshsets_manager->getMeshsetsMultindex()) {
std::string name =
"meshset" +
type +
boost::lexical_cast<std::string>(cit.getMeshsetId()) +
".vtk";
std::cout << "Writting file: " << name << endl;
CHKERR meshsets_manager->saveMeshsetToFile(
cit.getMeshsetId(), (cit.getBcType() & mask).to_ulong(), name);
}
}
return 0;
}
#define CATCH_ERRORS
Catch errors.
#define MYPCOMM_INDEX
default communicator number PCOMM
#define CHKERR
Inline error check.
int main(int argc, char *argv[])
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
std::bitset< 32 > CubitBCType
implementation of Data Operators for Forces and Sources
DeprecatedCoreInterface Interface
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
MoFEMErrorCode getInterface(const MOFEMuuid &uuid, IFACE *&iface) const
Get interface by uuid and return reference to pointer of interface.