|
| v0.14.0
|
Go to the documentation of this file.
10 using namespace MoFEM;
12 static char help[] =
"...\n\n";
14 int main(
int argc,
char *argv[]) {
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,
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
Interface for load MED files.
virtual MPI_Comm & get_comm() const =0
std::string medFileName
MED file name.
MoFEMErrorCode readMed(const string &file, int verb=1)
read MED file
std::map< std::string, FieldData > fieldNames
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
int main(int argc, char *argv[])
Deprecated interface functions.
DeprecatedCoreInterface Interface
#define CHKERR
Inline error check.
implementation of Data Operators for Forces and Sources
MoFEMErrorCode medGetFieldNames(const string &file, int verb=1)
Get field names in MED file.
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)
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
#define CATCH_ERRORS
Catch errors.
#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
Interface for managing meshsets containing materials and boundary conditions.
@ MOFEM_ATOM_TEST_INVALID
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)