![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __SAMPLE_H 00005 #define __SAMPLE_H 00006 00007 #include <dolfin/constants.h> 00008 00009 namespace dolfin { 00010 00011 class Solution; 00012 class RHS; 00013 00015 00016 class Sample : public Variable 00017 { 00018 public: 00019 00021 Sample(Solution& solution, RHS& f, real t); 00022 00024 ~Sample(); 00025 00027 unsigned int size() const; 00028 00030 real t() const; 00031 00033 real u(unsigned int index); 00034 00036 real k(unsigned int index); 00037 00039 real r(unsigned int index); 00040 00041 private: 00042 00043 Solution& solution; 00044 RHS& f; 00045 real time; 00046 00047 }; 00048 00049 } 00050 00051 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.