Testing interface for reading and writing med files.
More...
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
Testing interface for reading and writing med files.
Definition in file reading_med_file.cpp.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 14 of file reading_med_file.cpp.
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,
◆ help
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.