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: FatBoundary.hpp,v 1.3 2007/08/18 15:57:42 delpinux Exp $ 00019 00020 00021 #ifndef _FATBOUNDARY_HPP_ 00022 #define _FATBOUNDARY_HPP_ 00023 00024 #include <Method.hpp> 00025 00026 #include <FatBoundaryOptions.hpp> 00027 #include <GetParameter.hpp> 00028 00029 #include <BaseMatrix.hpp> 00030 #include <BaseVector.hpp> 00031 00032 #include <Mesh.hpp> 00033 #include <Structured3DMesh.hpp> 00034 00035 #include <Problem.hpp> 00036 00046 class FatBoundary 00047 : public Method 00048 { 00049 private: 00050 ReferenceCounting<BaseMatrix> __A; 00051 ReferenceCounting<BaseVector> __b; 00052 00053 ConstReferenceCounting<Mesh> __mesh; 00054 00055 ConstReferenceCounting<Problem> __problem; 00056 00057 public: 00058 GetParameter<FatBoundaryOptions> __options; 00059 00060 const Problem& problem() const 00061 { 00062 return *__problem; 00063 } 00064 00065 const Structured3DMesh& mesh() const 00066 { 00067 return dynamic_cast<const Structured3DMesh&>(*__mesh); 00068 } 00069 00070 FatBoundary(const DiscretizationType& discretizationType, 00071 ConstReferenceCounting<Mesh> mesh) 00072 : Method(discretizationType), 00073 __mesh(mesh) 00074 { 00075 ; 00076 } 00077 00078 void Discretize (ConstReferenceCounting<Problem> problem); 00079 00080 void Compute (Solution& u); 00081 00082 ~FatBoundary() 00083 { 00084 ; 00085 } 00086 }; 00087 00088 #endif // _FATBOUNDARY_HPP_ 00089
1.5.6