exactsolution.h

Go to the documentation of this file.
00001 #ifndef  __ExactSolution_h
00002 #define  __ExactSolution_h
00003 
00004 
00005 #include  "vertex.h"
00006 #include  <string>
00007 #include  "application.h"
00008 
00009 /*-----------------------------------------*/
00010 
00011 namespace Gascoigne
00012 {
00013   
00018 
00022 
00023   class ExactSolution : public virtual Application
00024   {
00025     private:
00026 
00027     protected:
00028       double eps;
00029 
00030     public:
00031       ExactSolution(): Application(), eps(1.e-6) {}
00032       virtual ~ExactSolution() {}
00033 
00035       virtual double operator()(int c, const Vertex2d& v)const {
00036         std::cerr << "\"ExactSolution::operator()\" not written!" << std::endl;
00037         abort();
00038       } 
00039 
00040       virtual double x         (int c, const Vertex2d& v)const;
00041       virtual double y         (int c, const Vertex2d& v)const;
00042       virtual double z         (int c, const Vertex2d& v)const { abort(); }
00043       virtual double xx        (int c, const Vertex2d& v)const;
00044       virtual double yx        (int c, const Vertex2d& v)const;
00045       virtual double xy        (int c, const Vertex2d& v)const;
00046       virtual double yy        (int c, const Vertex2d& v)const;
00047 
00049       virtual double operator()(int c, const Vertex3d& v)const {
00050         std::cerr << "\"ExactSolution::operator()\" not written!" << std::endl;
00051         abort();
00052       } 
00053 
00054       virtual double x         (int c, const Vertex3d& v)const;
00055       virtual double y         (int c, const Vertex3d& v)const;
00056       virtual double z         (int c, const Vertex3d& v)const;
00057       virtual double xx        (int c, const Vertex3d& v)const;
00058       virtual double yy        (int c, const Vertex3d& v)const;
00059       virtual double zz        (int c, const Vertex3d& v)const;
00060       virtual double xy        (int c, const Vertex3d& v)const;
00061       virtual double yz        (int c, const Vertex3d& v)const;
00062       virtual double xz        (int c, const Vertex3d& v)const;
00063   };
00064 }
00065 
00066 #endif

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