DOpE
Public Member Functions
DOpE::Constraints Class Reference

#include <constraints.h>

Public Member Functions

 Constraints (const std::vector< std::vector< unsigned int > > &local_control_constraints, unsigned int global_constraints)
 
 Constraints (const Constraints &c)
 
 Constraints ()
 
void ReInit (std::vector< unsigned int > &control_dofs_per_block)
 
unsigned int n_dofs (std::string name) const
 
const std::vector< unsigned int > & GetDoFsPerBlock (std::string name) const
 

Detailed Description

This class is designed to describe the constraints imposed on the problem.

Constructor & Destructor Documentation

DOpE::Constraints::Constraints ( const std::vector< std::vector< unsigned int > > &  local_control_constraints,
unsigned int  global_constraints 
)
inline

Constructor for Constraint Descriptions

Parameters
local_control_constraintsEach entry in the vector corresponds to one block of the control variable. (Here blocks refer to the blocks in a deal.II BlockVector) Each entry consist of a vector of length two. In these, the first unsigned int describes how many local entries in this Block are locally constrained, and the second entry defines how many constraints are given on this quantity.
global_constraintsThe number of global constraints on the control and state variable.
DOpE::Constraints::Constraints ( const Constraints c)
inline

Copy Constructor

DOpE::Constraints::Constraints ( )
inline

Constructor to be used when no constraints are present.

Member Function Documentation

const std::vector<unsigned int>& DOpE::Constraints::GetDoFsPerBlock ( std::string  name) const
inline

Returns the DoFs Per Block Vector

unsigned int DOpE::Constraints::n_dofs ( std::string  name) const
inline

Returns the total number of local in time constraints.

void DOpE::Constraints::ReInit ( std::vector< unsigned int > &  control_dofs_per_block)
inline

Reinitialize the required constraints.


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