MFEM v2.0
|
Subclass constant coefficient. More...
#include <coefficient.hpp>
Public Member Functions | |
ConstantCoefficient (double c=1.0) | |
c is value of constant function | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient. | |
virtual void | Read (istream &in) |
Public Attributes | |
double | constant |
Subclass constant coefficient.
Definition at line 29 of file coefficient.hpp.
ConstantCoefficient::ConstantCoefficient | ( | double | c = 1.0 | ) | [inline, explicit] |
virtual double ConstantCoefficient::Eval | ( | ElementTransformation & | T, |
const IntegrationPoint & | ip | ||
) | [inline, virtual] |
Evaluate the coefficient.
Implements Coefficient.
Definition at line 39 of file coefficient.hpp.
References constant.
virtual void ConstantCoefficient::Read | ( | istream & | in | ) | [inline, virtual] |
Definition at line 33 of file coefficient.hpp.
Referenced by ConstantCoefficient(), Eval(), and Read().