![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __ODE_FUNCTION_H 00005 #define __ODE_FUNCTION_H 00006 00007 #include <dolfin/ElementData.h> 00008 #include <dolfin/GenericFunction.h> 00009 00010 namespace dolfin { 00011 00016 00017 class ODEFunction : public GenericFunction { 00018 public: 00019 00020 ODEFunction(unsigned int N); 00021 ~ODEFunction(); 00022 00023 // Evaluation of function 00024 real operator() (unsigned int i, real t); 00025 00026 // Get element data 00027 ElementData& elmdata(); 00028 00029 private: 00030 00031 ElementData _elmdata; 00032 00033 }; 00034 00035 } 00036 00037 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.