![]() |
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __FUNCTION_PAIR_H 00005 #define __FUNCTION_PAIR_H 00006 00007 #include <dolfin/NewArray.h> 00008 #include <dolfin/constants.h> 00009 00010 namespace dolfin 00011 { 00012 00013 class Function; 00014 class NewPDE; 00015 00023 00024 class FunctionPair 00025 { 00026 public: 00027 00029 FunctionPair(); 00030 00032 FunctionPair(NewArray<real>& w, Function& f); 00033 00035 ~FunctionPair(); 00036 00038 void update(const Cell& cell, const NewPDE& pde); 00039 00040 private: 00041 00042 // Degrees of freedom of the local function 00043 NewArray<real>* w; 00044 00045 // The global function 00046 Function* f; 00047 00048 }; 00049 00050 } 00051 00052 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.