MFEM v2.0
|
#include <coefficient.hpp>
Public Member Functions | |
GridFunctionCoefficient (GridFunction *gf, int comp=1) | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
virtual void | Read (istream &in) |
Private Attributes | |
GridFunction * | GridF |
int | Component |
Coefficient defined by a GridFunction; This coefficient is mesh dependent.
Definition at line 101 of file coefficient.hpp.
GridFunctionCoefficient::GridFunctionCoefficient | ( | GridFunction * | gf, |
int | comp = 1 |
||
) | [inline] |
Construct GridFunctionCoefficient from a given GridFunction and optionally which component to use if it is a vector gridfunction.
Definition at line 111 of file coefficient.hpp.
double GridFunctionCoefficient::Eval | ( | ElementTransformation & | T, |
const IntegrationPoint & | ip | ||
) | [virtual] |
Implements Coefficient.
Definition at line 46 of file coefficient.cpp.
References Component, ElementTransformation::ElementNo, and GridF.
virtual void GridFunctionCoefficient::Read | ( | istream & | in | ) | [inline, virtual] |
int GridFunctionCoefficient::Component [private] |
Definition at line 105 of file coefficient.hpp.
Referenced by Eval(), and GridFunctionCoefficient().
GridFunction* GridFunctionCoefficient::GridF [private] |
Definition at line 104 of file coefficient.hpp.
Referenced by Eval(), and GridFunctionCoefficient().