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: FunctionExpressionDG.hpp,v 1.1 2008/01/31 21:38:16 delpinux Exp $ 00019 00020 #ifndef FUNCTION_EXPRESSION_DG_HPP 00021 #define FUNCTION_EXPRESSION_DG_HPP 00022 00023 #include <FunctionExpression.hpp> 00024 00025 #include <ScalarDiscretizationTypeBase.hpp> 00026 00027 class MeshExpression; 00028 00037 class FunctionExpressionDG 00038 : public FunctionExpression 00039 { 00040 private: 00041 const ScalarDiscretizationTypeBase::Type 00042 __discretizationType; 00044 ReferenceCounting<MeshExpression> 00045 __mesh; 00047 ReferenceCounting<FunctionExpression> 00048 __functionExpression; 00061 static ScalarDiscretizationTypeBase::Type 00062 __DGTypeFromFEMType(const ScalarDiscretizationTypeBase::Type& d); 00063 public: 00070 ReferenceCounting<MeshExpression> mesh() const 00071 { 00072 #warning SHOULD NOT USE THIS FUNCTION 00073 return __mesh; 00074 } 00075 00080 void execute(); 00081 00090 FunctionExpressionDG(ReferenceCounting<MeshExpression> mesh, 00091 ReferenceCounting<FunctionExpression> e, 00092 const ScalarDiscretizationTypeBase::Type& femType); 00093 00100 FunctionExpressionDG(const FunctionExpressionDG& f); 00101 00106 ~FunctionExpressionDG(); 00107 }; 00108 00109 #endif // FUNCTION_EXPRESSION_DG_HPP
1.5.6