MFEM v2.0
|
class for C-function coefficient More...
#include <coefficient.hpp>
Public Member Functions | |
FunctionCoefficient (double(*f)(Vector &)) | |
f should be a pointer to a c function | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate coefficient. | |
virtual void | Read (istream &in) |
Private Attributes | |
double(* | Function )(Vector &) |
class for C-function coefficient
Definition at line 80 of file coefficient.hpp.
FunctionCoefficient::FunctionCoefficient | ( | double(*)(Vector &) | f | ) | [inline] |
f should be a pointer to a c function
Definition at line 88 of file coefficient.hpp.
References Function.
double FunctionCoefficient::Eval | ( | ElementTransformation & | T, |
const IntegrationPoint & | ip | ||
) | [virtual] |
Evaluate coefficient.
Implements Coefficient.
Definition at line 35 of file coefficient.cpp.
References Function, and ElementTransformation::Transform().
virtual void FunctionCoefficient::Read | ( | istream & | in | ) | [inline, virtual] |
Implements Coefficient.
Definition at line 94 of file coefficient.hpp.
double(* FunctionCoefficient::Function)(Vector &) [private] |
Definition at line 83 of file coefficient.hpp.
Referenced by Eval(), and FunctionCoefficient().