00001 // This file is part of ff3d - http://www.freefem.org/ff3d 00002 // Copyright (C) 2001, 2002, 2003 Stéphane Del Pino 00003 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 2, or (at your option) 00007 // any later version. 00008 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software Foundation, 00016 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 // $Id: PDESolution.hpp,v 1.8 2007/05/20 23:26:37 delpinux Exp $ 00019 00020 #ifndef PDE_SOLUTION_HPP 00021 #define PDE_SOLUTION_HPP 00022 00023 #include <Solution.hpp> 00024 #include <BaseVector.hpp> 00025 00026 #include <ReferenceCounting.hpp> 00027 00028 #include <DegreeOfFreedomSet.hpp> 00029 00030 #include <vector> 00031 00032 #include <ScalarFunctionBase.hpp> 00033 00034 class PDESolution 00035 : public Solution 00036 { 00037 protected: 00038 const DegreeOfFreedomSet& __degreeOfFreedomSet; 00039 00040 ReferenceCounting<Vector<real_t> > __values;; 00041 00042 private: 00044 PDESolution(const PDESolution&); 00045 00046 public: 00047 ReferenceCounting<Vector<real_t> > values() 00048 { 00049 return __values; 00050 } 00051 00052 ConstReferenceCounting<Vector<real_t> > values() const 00053 { 00054 return __values; 00055 } 00056 00057 size_t size() const 00058 { 00059 return __degreeOfFreedomSet.size(); 00060 } 00061 00062 PDESolution(const DegreeOfFreedomSet& d); 00063 00064 virtual ~PDESolution() 00065 { 00066 ; 00067 } 00068 }; 00069 00070 #endif // PDE_SOLUTION_HPP
1.5.6