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: SolverExpression.hpp,v 1.11 2007/08/02 23:15:52 delpinux Exp $ 00019 00020 #ifndef SOLVER_EXPRESSION_HPP 00021 #define SOLVER_EXPRESSION_HPP 00022 00023 #include <Expression.hpp> 00024 00025 #include <UnknownListExpression.hpp> 00026 00027 #include <DomainExpression.hpp> 00028 #include <MeshExpression.hpp> 00029 00030 #include <SolverOptionsExpression.hpp> 00031 #include <ProblemExpression.hpp> 00032 00033 #include <Variable.hpp> 00034 00035 class DiscretizationType; 00036 class ScalarDiscretizationTypeBase; 00037 00045 class SolverExpression 00046 : public Expression 00047 { 00048 protected: 00049 ReferenceCounting<UnknownListExpression> __unknownList; 00050 ReferenceCounting<MeshExpression> __mesh; 00051 00052 ReferenceCounting<SolverOptionsExpression> __solverOptions; 00053 ReferenceCounting<ProblemExpression> __problemExpression; 00054 00055 ReferenceCounting<DomainExpression> __domain; 00056 00057 private: 00058 void __setScene(ReferenceCounting<DomainExpression> d) const; 00059 00060 std::ostream& put(std::ostream& os) const; 00061 00062 SolverExpression(const SolverExpression&); 00063 00064 void __solveFEM(const DiscretizationType& discretization); 00065 void __solveLegendre(const DiscretizationType& discretization); 00066 00067 public: 00068 void execute(); 00069 00070 SolverExpression(ReferenceCounting<UnknownListExpression> unknownList, 00071 ReferenceCounting<MeshExpression> mesh, 00072 ReferenceCounting<SolverOptionsExpression> solverOptions, 00073 ReferenceCounting<ProblemExpression> problemExpression, 00074 ReferenceCounting<DomainExpression> domainExpression = 0); 00075 00076 ~SolverExpression(); 00077 }; 00078 00079 #endif // SOLVER_EXPRESSION_HPP
1.5.6