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

#include <coefficient.hpp>

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

List of all members.

Public Member Functions

 GridFunctionCoefficient (GridFunction *gf, int comp=1)
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
virtual void Read (istream &in)

Private Attributes

GridFunctionGridF
int Component

Detailed Description

Coefficient defined by a GridFunction; This coefficient is mesh dependent.

Definition at line 101 of file coefficient.hpp.


Constructor & Destructor Documentation

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.

References Component, and GridF.


Member Function Documentation

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]

Implements Coefficient.

Definition at line 117 of file coefficient.hpp.

References mfem_error().


Member Data Documentation

Definition at line 105 of file coefficient.hpp.

Referenced by Eval(), and GridFunctionCoefficient().

Definition at line 104 of file coefficient.hpp.

Referenced by Eval(), and GridFunctionCoefficient().


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