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 |
|
|
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; |
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 |
{ |
{ |
129 |
} |
} |
130 |
}; |
}; |
131 |
|
|
132 |
#endif // PDESYSTEM_HPP |
#endif // PDE_SYSTEM_HPP |
133 |
|
|