MFEM v2.0
|
Coefficient defined on a subset of domain or boundary attributes. More...
#include <coefficient.hpp>
Public Member Functions | |
RestrictedCoefficient (Coefficient &_c, Array< int > &attr) | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
virtual void | Read (istream &in) |
Private Attributes | |
Coefficient * | c |
Array< int > | active_attr |
Coefficient defined on a subset of domain or boundary attributes.
Definition at line 171 of file coefficient.hpp.
RestrictedCoefficient::RestrictedCoefficient | ( | Coefficient & | _c, |
Array< int > & | attr | ||
) | [inline] |
Definition at line 178 of file coefficient.hpp.
References active_attr, c, and Array< T >::Copy().
virtual double RestrictedCoefficient::Eval | ( | ElementTransformation & | T, |
const IntegrationPoint & | ip | ||
) | [inline, virtual] |
Implements Coefficient.
Definition at line 181 of file coefficient.hpp.
References active_attr, ElementTransformation::Attribute, c, and Coefficient::Eval().
virtual void RestrictedCoefficient::Read | ( | istream & | in | ) | [inline, virtual] |
Implements Coefficient.
Definition at line 184 of file coefficient.hpp.
Array<int> RestrictedCoefficient::active_attr [private] |
Definition at line 175 of file coefficient.hpp.
Referenced by Eval(), and RestrictedCoefficient().
Coefficient* RestrictedCoefficient::c [private] |
Definition at line 174 of file coefficient.hpp.
Referenced by Eval(), and RestrictedCoefficient().