|
| v0.14.0
|
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
◆ EdgeEle
◆ EdgeEleOp
◆ FaceEleOnSide
◆ FaceEleOnSideOp
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
- Examples
- continuity_check_on_skeleton_with_simple_2d_for_hdiv.cpp.
Definition at line 152 of file continuity_check_on_skeleton_with_simple_2d_for_hdiv.cpp.
168 DMType dm_name =
"DMMOFEM";
181 enum bases { AINSWORTH, DEMKOWICZ, LASTBASEOP };
182 const char *list_bases[] = {
"ainsworth",
"demkowicz"};
184 PetscInt choice_base_value = AINSWORTH;
186 LASTBASEOP, &choice_base_value, &flg);
187 if (flg == PETSC_TRUE) {
189 if (choice_base_value == AINSWORTH)
191 else if (choice_base_value == DEMKOWICZ)
199 auto base = get_base();
207 auto dm = simple_interface->
getDM();
211 boost::shared_ptr<EdgeEle> skeleton_fe =
212 boost::shared_ptr<EdgeEle>(
new EdgeEle(m_field));
214 skeleton_fe->getOpPtrVector().push_back(
216 skeleton_fe->getOpPtrVector().push_back(
◆ help
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
const std::string getSkeletonFEName() const
Get the Skeleton FE Name.
MoFEMErrorCode loadFile(const std::string options, const std::string mesh_file_name, LoadFileFunc loadFunc=defaultLoadFileFunc)
Load mesh file.
MoFEM::EdgeElementForcesAndSourcesCore EdgeEle
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Simple interface for fast problem set-up.
Deprecated interface functions.
MoFEMErrorCode addSkeletonField(const std::string &name, const FieldSpace space, const FieldApproximationBase base, const FieldCoefficientsNumber nb_of_coefficients, const TagType tag_type=MB_TAG_SPARSE, const enum MoFEMTypes bh=MF_ZERO, int verb=-1)
Add field on skeleton.
DeprecatedCoreInterface Interface
MoFEMErrorCode getOptions()
get options
MoFEMErrorCode getDM(DM *dm)
Get DM.
#define CHKERR
Inline error check.
MoFEMErrorCode addDomainField(const std::string &name, const FieldSpace space, const FieldApproximationBase base, const FieldCoefficientsNumber nb_of_coefficients, const TagType tag_type=MB_TAG_SPARSE, const enum MoFEMTypes bh=MF_ZERO, int verb=-1)
Add field on domain.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
MoFEMErrorCode setFieldOrder(const std::string field_name, const int order, const Range *ents=NULL)
Set field order.
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.
@ AINSWORTH_LEGENDRE_BASE
Ainsworth Cole (Legendre) approx. base .
@ HCURL
field with continuous tangents
PetscErrorCode PetscOptionsGetEList(PetscOptions *, const char pre[], const char name[], const char *const *list, PetscInt next, PetscInt *value, PetscBool *set)
FieldApproximationBase
approximation base
MoFEMErrorCode setUp(const PetscBool is_partitioned=PETSC_TRUE)
Setup problem.
PetscErrorCode DMoFEMLoopFiniteElements(DM dm, const char fe_name[], MoFEM::FEMethod *method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr())
Executes FEMethod for finite elements in DM.