GridFunction.h

00001 #ifndef gridripper_amr1d_GridFunction_h
00002 #define gridripper_amr1d_GridFunction_h
00003 
00004 #include <gridripper/config.h>
00005 #include <gridripper/tvalarray.h>
00006 #include <string>
00007 
00008 namespace gridripper { namespace amr1d {
00009 
00017 class GridFunction
00018 {
00019 private:
00020     string theName;
00021 
00022 public:
00023     GridFunction(const string& name) {
00024         theName = name;
00025     }
00026 
00027     const string& getName() const {
00028         return theName;
00029     }
00030 
00031     virtual GReal_t eval(GReal_t t, GReal_t x, const tvalarray<GReal_t>& F)
00032         const =0;
00033     virtual ~GridFunction() { }
00034 };
00035 
00036 } } // namespace gridripper::amr1d
00037 
00038 #endif /* gridripper_amr1d_GridFunction_h */

Generated on Wed Jun 17 18:46:47 2009 for GridRipper by  doxygen 1.5.6