12static char help[] =
"...\n\n";
14int main(
int argc,
char *argv[]) {
20 moab::Core mb_instance;
21 moab::Interface &moab = mb_instance;
34 for (std::map<std::string, MedInterface::FieldData>::iterator fit =
36 fit != med_interface_ptr->
fieldNames.end(); fit++) {
38 fit->first,
false, 1);
41 PetscBool check = PETSC_TRUE;
45 const int check_list[] = {2163, 624, 65, 104};
49 CHKERR moab.get_number_entities_by_handle(meshset, nb_ents,
true);
50 CHKERR PetscPrintf(PETSC_COMM_WORLD,
"Nb of ents in %s %d\n",
51 cit->getName().c_str(), nb_ents);
53 if (check && nb_ents != check_list[ii]) {
55 "Wrong numbers of entities in meshset %d != %d", nb_ents,
66 std::string name = mit->getName();
67 PetscPrintf(m_field.
get_comm(),
"Write mesh %s\n", name.c_str());
68 CHKERR moab.write_file((
"out_" + mit->getName() +
".vtk").c_str(), NULL,
#define CATCH_ERRORS
Catch errors.
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
@ MOFEM_ATOM_TEST_INVALID
#define CHKERR
Inline error check.
#define _IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP_(MESHSET_MANAGER, CUBITBCTYPE, IT)
Iterator that loops over a specific Cubit MeshSet having a particular BC meshset in a moFEM field.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
implementation of Data Operators for Forces and Sources
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)
virtual MPI_Comm & get_comm() const =0
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.
Interface for load MED files.
MoFEMErrorCode readMed(const string &file, int verb=1)
read MED file
std::map< std::string, FieldData > fieldNames
std::string medFileName
MED file name.
MoFEMErrorCode readFields(const std::string &file_name, const std::string &field_name, const bool load_series=false, const int only_step=-1, int verb=1)
MoFEMErrorCode medGetFieldNames(const string &file, int verb=1)
Get field names in MED file.
Interface for managing meshsets containing materials and boundary conditions.
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.