concepts::AdaptiveControlTag Struct Reference

Tag information which is used in AdaptiveControl. More...

#include <space.hh>

Public Types

enum  tagInfo {
  NO_TAG = 0, MEMBER = 1, PASSIVE = 2, VLD_IDX = 4,
  VLD_P = 8
}
 Enumeration of the bit values in data_. More...
 

Public Member Functions

void activate ()
 
 AdaptiveControlTag (uchar t=0)
 Constructor. More...
 
void deactivate ()
 
bool idxValid () const
 Checks for a valid index. More...
 
void invalidateIdx ()
 
void invalidateP ()
 
bool isActive () const
 Checks activity. More...
 
bool isMember () const
 Checks member of the space. More...
 
bool isPassive () const
 Checks activity. More...
 
uchar operator= (const uchar &t)
 Assignement operator. More...
 
bool pValid () const
 Checks for a valid polynomial degree. More...
 
void takeIn ()
 Takes into the space. More...
 
void takeOut ()
 Takes out of the space. More...
 
void validateIdx ()
 
void validateP ()
 

Public Attributes

uchar data_
 Control information. More...
 

Detailed Description

Tag information which is used in AdaptiveControl.

Author
Philipp Frauenfelder, 2001

Definition at line 142 of file space.hh.

Member Enumeration Documentation

◆ tagInfo

Enumeration of the bit values in data_.

This makes the handling of the bits in the data_ easier: to check

  • for 'member of the space':
    (data_ & MEMBER) != 0
  • for 'active':
    (data_ & PASSIVE) == 0

or to change

  • to 'passive':
    data_ |= PASSIVE;
  • to 'active':
    data_ &= ~PASSIVE;
Enumerator
NO_TAG 
MEMBER 
PASSIVE 
VLD_IDX 
VLD_P 

Definition at line 156 of file space.hh.

Constructor & Destructor Documentation

◆ AdaptiveControlTag()

concepts::AdaptiveControlTag::AdaptiveControlTag ( uchar  t = 0)
inline

Constructor.

Definition at line 170 of file space.hh.

Member Function Documentation

◆ activate()

void concepts::AdaptiveControlTag::activate ( )
inline

Definition at line 194 of file space.hh.

◆ deactivate()

void concepts::AdaptiveControlTag::deactivate ( )
inline

Definition at line 195 of file space.hh.

◆ idxValid()

bool concepts::AdaptiveControlTag::idxValid ( ) const
inline

Checks for a valid index.

Returns
True if the index is valid

Definition at line 200 of file space.hh.

◆ invalidateIdx()

void concepts::AdaptiveControlTag::invalidateIdx ( )
inline

Definition at line 202 of file space.hh.

◆ invalidateP()

void concepts::AdaptiveControlTag::invalidateP ( )
inline

Definition at line 209 of file space.hh.

◆ isActive()

bool concepts::AdaptiveControlTag::isActive ( ) const
inline

Checks activity.

Returns
True if 'active'

Definition at line 187 of file space.hh.

◆ isMember()

bool concepts::AdaptiveControlTag::isMember ( ) const
inline

Checks member of the space.

Returns
True if 'member of the space'

Definition at line 178 of file space.hh.

◆ isPassive()

bool concepts::AdaptiveControlTag::isPassive ( ) const
inline

Checks activity.

Note: isPassive() == !isActive().

Returns
True if 'passive'
Deprecated:
: user !isActive()

Definition at line 193 of file space.hh.

◆ operator=()

uchar concepts::AdaptiveControlTag::operator= ( const uchar t)
inline

Assignement operator.

Definition at line 173 of file space.hh.

◆ pValid()

bool concepts::AdaptiveControlTag::pValid ( ) const
inline

Checks for a valid polynomial degree.

Returns
True if the polynomial degree is valid

Definition at line 207 of file space.hh.

◆ takeIn()

void concepts::AdaptiveControlTag::takeIn ( )
inline

Takes into the space.

Definition at line 180 of file space.hh.

◆ takeOut()

void concepts::AdaptiveControlTag::takeOut ( )
inline

Takes out of the space.

Definition at line 182 of file space.hh.

◆ validateIdx()

void concepts::AdaptiveControlTag::validateIdx ( )
inline

Definition at line 201 of file space.hh.

◆ validateP()

void concepts::AdaptiveControlTag::validateP ( )
inline

Definition at line 208 of file space.hh.

Member Data Documentation

◆ data_

uchar concepts::AdaptiveControlTag::data_

Control information.

The information stored in the tag has to be viewed as a bit field containing the following information:
bit 0: member of the space (1), not member(0)
bit 1: passive(1), active(0) (eg. for enforcing boundary conditions)
bit 2: valid index, ie. this index is already used for assembling, useful for enforcing continuity of the solution
bit 3: valid p (for high order methods)

Definition at line 167 of file space.hh.


The documentation for this struct was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich