v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Smoother::SmootherBlockData Struct Reference

#include <users_modules/basic_finite_elements/src/Smoother.hpp>

Collaboration diagram for Smoother::SmootherBlockData:
[legend]

Public Member Functions

 SmootherBlockData ()
 
MoFEMErrorCode getOptions ()
 
virtual ~SmootherBlockData ()
 

Public Attributes

bool sTabilised
 
Vec frontF
 
Vec tangentFrontF
 
bool ownVectors
 

Detailed Description

Definition at line 12 of file Smoother.hpp.

Constructor & Destructor Documentation

◆ SmootherBlockData()

Smoother::SmootherBlockData::SmootherBlockData ( )
inline

Definition at line 19 of file Smoother.hpp.

20 : sTabilised(false), frontF(PETSC_NULL), tangentFrontF(PETSC_NULL),
21 ownVectors(false) {
22 ierr = getOptions();
23 CHKERRABORT(PETSC_COMM_SELF, ierr);
24 }
static PetscErrorCode ierr
MoFEMErrorCode getOptions()
Definition: Smoother.hpp:26

◆ ~SmootherBlockData()

virtual Smoother::SmootherBlockData::~SmootherBlockData ( )
inlinevirtual

Definition at line 41 of file Smoother.hpp.

41 {
42 if (ownVectors) {
43 ierr = VecDestroy(&frontF);
44 CHKERRABORT(PETSC_COMM_WORLD, ierr);
45 ierr = VecDestroy(&tangentFrontF);
46 CHKERRABORT(PETSC_COMM_WORLD, ierr);
47 }
48 }

Member Function Documentation

◆ getOptions()

MoFEMErrorCode Smoother::SmootherBlockData::getOptions ( )
inline

Definition at line 26 of file Smoother.hpp.

26 {
28 ierr = PetscOptionsBegin(PETSC_COMM_WORLD, "",
29 "Get stabilisation element options", "none");
31 PetscBool smoothing_on = sTabilised ? PETSC_TRUE : PETSC_FALSE;
32 CHKERR PetscOptionsBool("-smoothing_stabilise",
33 "all nodes controlled by smoothing element", "",
34 smoothing_on, &smoothing_on, PETSC_NULL);
35 sTabilised = (smoothing_on == PETSC_TRUE) ? true : false;
36 ierr = PetscOptionsEnd();
39 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:483
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535

Member Data Documentation

◆ frontF

Vec Smoother::SmootherBlockData::frontF

Definition at line 15 of file Smoother.hpp.

◆ ownVectors

bool Smoother::SmootherBlockData::ownVectors

Definition at line 17 of file Smoother.hpp.

◆ sTabilised

bool Smoother::SmootherBlockData::sTabilised

Definition at line 14 of file Smoother.hpp.

◆ tangentFrontF

Vec Smoother::SmootherBlockData::tangentFrontF

Definition at line 16 of file Smoother.hpp.


The documentation for this struct was generated from the following file: