MFEM v2.0
Public Member Functions | Private Attributes
FunctionCoefficient Class Reference

class for C-function coefficient More...

#include <coefficient.hpp>

Inheritance diagram for FunctionCoefficient:
Inheritance graph
[legend]
Collaboration diagram for FunctionCoefficient:
Collaboration graph
[legend]

List of all members.

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 &)

Detailed Description

class for C-function coefficient

Definition at line 80 of file coefficient.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

double(* FunctionCoefficient::Function)(Vector &) [private]

Definition at line 83 of file coefficient.hpp.

Referenced by Eval(), and FunctionCoefficient().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines