|
| v0.14.0
|
Go to the documentation of this file.
7 static char help[] =
"...\n\n";
9 int main(
int argc,
char *argv[]) {
19 PetscBool flg = PETSC_TRUE;
21 #if PETSC_VERSION_GE(3, 6, 4)
30 if (flg != PETSC_TRUE) {
31 SETERRQ(PETSC_COMM_SELF, 1,
"*** ERROR -my_file (MESH FILE NEEDED)");
47 std::cout <<
"<<<< All BLOCKSETs, SIDESETs and NODESETs >>>>>" << std::endl;
49 std::cout << it->getName() << std::endl;
50 myfile << it->getName() << std::endl;
52 std::cout <<
"<<<< BLOCKSETs >>>>>" << std::endl;
54 std::cout << it->getName() << std::endl;
55 myfile << it->getName() << std::endl;
57 std::cout <<
"<<<< NODESETs >>>>>" << std::endl;
59 std::cout << it->getName() << std::endl;
60 myfile << it->getName() << std::endl;
62 std::cout <<
"<<<< SIDESETs >>>>>" << std::endl;
64 std::cout << it->getName() << std::endl;
65 myfile << it->getName() << std::endl;
67 std::cout <<
"<<<< MeshSet of Name Moon >>>>" << std::endl;
69 std::cout << it->getName() << std::endl;
70 myfile << it->getName() << std::endl;
71 if (it->getBcTypeULong() &
BLOCKSET) {
72 std::cout <<
"BLOCKSET" << std::endl;
73 myfile <<
"BLOCKSET" << std::endl;
75 if (it->getBcTypeULong() &
SIDESET) {
76 std::cout <<
"SIDESET" << std::endl;
77 myfile <<
"SIDESET" << std::endl;
79 if (it->getBcTypeULong() &
NODESET) {
80 std::cout <<
"NODESET" << std::endl;
81 myfile <<
"NODESET" << std::endl;
int main(int argc, char *argv[])
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
DeprecatedCoreInterface Interface
#define CHKERR
Inline error check.
implementation of Data Operators for Forces and Sources
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
PetscErrorCode PetscOptionsGetString(PetscOptions *, const char pre[], const char name[], char str[], size_t size, PetscBool *set)
#define _IT_CUBITMESHSETS_BY_NAME_FOR_LOOP_(MESHSET_MANAGER, NAME, IT)
Iterator that loops over Cubit BlockSet having a particular name.
#define _IT_CUBITMESHSETS_FOR_LOOP_(MESHSET_MANAGER, IT)
Iterator that loops over all the Cubit MeshSets in a moFEM field.
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.