v0.15.5
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 20 of file Smoother.hpp.

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

◆ ~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 27 of file Smoother.hpp.

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

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: