boundaryfunction.h

Go to the documentation of this file.
00001 #ifndef  __boundaryfunction_h
00002 #define  __boundaryfunction_h
00003 
00004 #include  <string>
00005 #include  "vertex.h"
00006 
00007 /*---------------------------------------------------*/
00008 
00009 namespace Gascoigne
00010 {
00011 template<int DIM>
00012 class BoundaryFunction
00013 {
00014 protected:
00015   
00016   typedef Vertex<DIM>  Vector;
00017   
00018 public :
00019   
00020   BoundaryFunction() {}
00021   virtual ~BoundaryFunction() {}
00022 
00023   virtual std::string GetName() const=0;
00024   virtual double operator()(const Vector& c) const=0;
00025   
00026   virtual void grad(Vector& dst, const Vector& src) const;
00027   virtual void newton(Vector&) const;
00028 };
00029 }
00030 
00031 /*---------------------------------------------------*/
00032 
00033 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7