integrationformulainterface.h

Go to the documentation of this file.
00001 #ifndef __integrationformulainterface_h
00002 #define __integrationformulainterface_h
00003 
00004 #include  "nvector.h"
00005 #include  "vertex.h"
00006 
00007 /*------------------------------------------------------------*/
00008 
00009 namespace Gascoigne
00010 {
00011   class IntegrationFormulaInterface
00012   {
00013     public:
00014       IntegrationFormulaInterface() {}
00015       virtual ~IntegrationFormulaInterface() {}
00016 
00017       virtual int    n()      const=0;
00018       virtual double w(int k) const=0;
00019 
00020       virtual void xi(Vertex1d& v, int k) const {
00021         std::cerr << "\"IntegrationFormulaInterface::xi\" not written!" << std::endl;
00022         abort();
00023       }
00024       virtual void xi(Vertex2d& v, int k) const {
00025         std::cerr << "\"IntegrationFormulaInterface::xi\" not written!" << std::endl;
00026         abort();
00027       }
00028       virtual void xi(Vertex3d& v, int k) const {
00029         std::cerr << "\"IntegrationFormulaInterface::xi\" not written!" << std::endl;
00030         abort();
00031       }
00032   };
00033 }
00034 
00035 /*------------------------------------------------------------*/
00036 
00037 #endif

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