/[ff3d]/ff3d/solver/PDESystem.hpp
ViewVC logotype

Diff of /ff3d/solver/PDESystem.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by delpinux, Sat Sep 20 21:31:09 2003 UTC revision 1.3 by delpinux, Sun Sep 21 14:34:18 2003 UTC
# Line 17  Line 17 
17    
18  //  $Id$  //  $Id$
19    
20  #ifndef PDESYSTEM_HPP  #ifndef PDE_SYSTEM_HPP
21  #define PDESYSTEM_HPP  #define PDE_SYSTEM_HPP
22    
23  #include <vector>  #include <vector>
24    
# Line 67  public: Line 67  public:
67    
68    ReferenceCounting<Problem> operator * (ConstReferenceCounting<UserFunction> u) const    ReferenceCounting<Problem> operator * (ConstReferenceCounting<UserFunction> u) const
69    {    {
70      PDESystem* newPDESystem = new PDESystem(this->numberOfEquations());      PDESystem* newPDESystem = new PDESystem(*this);
71    
72      for (size_t i=0; i<this->numberOfEquations(); ++i) {      for (size_t i=0; i<this->numberOfEquations(); ++i) {
73        (*newPDESystem).__pdeProblems[i] = (*__pdeProblems[i]) * u;        (*newPDESystem).__pdeProblems[i] = (*__pdeProblems[i]) * u;
# Line 110  public: Line 110  public:
110      __pdeProblems.reserve(dimension);      __pdeProblems.reserve(dimension);
111    }    }
112    
113      /**
114       * Copy constructor
115       *
116       * @param p a given problem
117       *
118       */
119      PDESystem(const PDESystem& p)
120        : Problem(p),
121          __pdeProblems(p.__pdeProblems)
122      {
123      }
124    
125    //! destructor    //! destructor
126    ~PDESystem ()    ~PDESystem ()
127    {    {
# Line 117  public: Line 129  public:
129    }    }
130  };  };
131    
132  #endif // PDESYSTEM_HPP  #endif // PDE_SYSTEM_HPP
133    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26