|
| v0.14.0
|
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 51 of file mix_transport.cpp.
60 MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
62 PetscBool flg = PETSC_TRUE;
66 if (flg != PETSC_TRUE) {
67 SETERRQ(PETSC_COMM_SELF, 1,
"*** ERROR -my_file (MESH FILE NEEDED)");
70 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
72 pcomm =
new ParallelComm(&moab, PETSC_COMM_WORLD);
96 if (flg != PETSC_TRUE) {
104 CHKERR ufe.addFiniteElements(
"FLUXES",
"VALUES");
113 CHKERR skin.find_skin(0, tets,
false, skin_faces);
117 CHKERR ufe.buildProblem(ref_level);
118 CHKERR ufe.createMatrices();
119 CHKERR ufe.solveLinearProblem();
120 CHKERR ufe.calculateResidual();
121 CHKERR ufe.evaluateError();
124 CHKERR VecNorm(ufe.F, NORM_2, &nrm2_F);
126 const double eps = 1e-8;
129 "problem with residual");
132 CHKERR ufe.destroyMatrices();
◆ help
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
#define BARRIER_PCOMM_RANK_START(PCMB)
set barrier start Run code in sequence, starting from process 0, and ends on last process.
#define MYPCOMM_INDEX
default communicator number PCOMM
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
DeprecatedCoreInterface Interface
virtual MoFEMErrorCode add_ents_to_finite_element_by_type(const EntityHandle entities, const EntityType type, const std::string &name, const bool recursive=true)=0
add entities to finite element
#define CHKERR
Inline error check.
Application of mix transport data structure.
#define BARRIER_PCOMM_RANK_END(PCMB)
set barrier start Run code in sequence, starting from process 0, and ends on last process.
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.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
PetscErrorCode PetscOptionsGetString(PetscOptions *, const char pre[], const char name[], char str[], size_t size, PetscBool *set)
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
@ MOFEM_ATOM_TEST_INVALID
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.