v0.10.0
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 24 of file Smoother.hpp.

Constructor & Destructor Documentation

◆ SmootherBlockData()

Smoother::SmootherBlockData::SmootherBlockData ( )

Definition at line 31 of file Smoother.hpp.

32  : sTabilised(false), frontF(PETSC_NULL), tangentFrontF(PETSC_NULL),
33  ownVectors(false) {
34  ierr = getOptions();
35  CHKERRABORT(PETSC_COMM_SELF, ierr);
36  }
MoFEMErrorCode getOptions()
Definition: Smoother.hpp:38
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87

◆ ~SmootherBlockData()

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

Definition at line 53 of file Smoother.hpp.

53  {
54  if (ownVectors) {
55  ierr = VecDestroy(&frontF);
56  CHKERRABORT(PETSC_COMM_WORLD, ierr);
57  ierr = VecDestroy(&tangentFrontF);
58  CHKERRABORT(PETSC_COMM_WORLD, ierr);
59  }
60  }
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87

Member Function Documentation

◆ getOptions()

MoFEMErrorCode Smoother::SmootherBlockData::getOptions ( )

Definition at line 38 of file Smoother.hpp.

38  {
40  ierr = PetscOptionsBegin(PETSC_COMM_WORLD, "",
41  "Get stabilisation element options", "none");
42  CHKERRG(ierr);
43  PetscBool smoothing_on = sTabilised ? PETSC_TRUE : PETSC_FALSE;
44  CHKERR PetscOptionsBool("-smoothing_stabilise",
45  "all nodes controlled by smoothing element", "",
46  smoothing_on, &smoothing_on, PETSC_NULL);
47  sTabilised = (smoothing_on == PETSC_TRUE) ? true : false;
48  ierr = PetscOptionsEnd();
49  CHKERRG(ierr);
51  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:485
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:552
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87
#define CHKERR
Inline error check.
Definition: definitions.h:604
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:415

Member Data Documentation

◆ frontF

Vec Smoother::SmootherBlockData::frontF

Definition at line 27 of file Smoother.hpp.

◆ ownVectors

bool Smoother::SmootherBlockData::ownVectors

Definition at line 29 of file Smoother.hpp.

◆ sTabilised

bool Smoother::SmootherBlockData::sTabilised

Definition at line 26 of file Smoother.hpp.

◆ tangentFrontF

Vec Smoother::SmootherBlockData::tangentFrontF

Definition at line 28 of file Smoother.hpp.


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