19 |
|
|
20 |
// This class describes a PDE |
// This class describes a PDE |
21 |
|
|
22 |
#ifndef _PDE_HPP_ |
#ifndef PDE_HPP |
23 |
#define _PDE_HPP_ |
#define PDE_HPP |
24 |
|
|
25 |
#include <VectorialPDEOperator.hpp> |
#include <VectorialPDEOperator.hpp> |
26 |
#include <UserFunction.hpp> |
#include <UserFunction.hpp> |
43 |
ConstReferenceCounting<UserFunction> __secondMember; |
ConstReferenceCounting<UserFunction> __secondMember; |
44 |
|
|
45 |
public: |
public: |
46 |
|
ConstReferenceCounting<PDE> operator * (ConstReferenceCounting<UserFunction> u) const |
47 |
|
{ |
48 |
|
PDE* newPDE = new PDE(); |
49 |
|
(*newPDE).__secondMember = new MulUserFunction(__secondMember, u); |
50 |
|
(*newPDE).__vectorPDEOperator = (*__vectorPDEOperator) * u; |
51 |
|
return newPDE; |
52 |
|
} |
53 |
|
|
54 |
//! read-only access to the second member function |
//! read-only access to the second member function |
55 |
ConstReferenceCounting<UserFunction> secondMember() const |
ConstReferenceCounting<UserFunction> secondMember() const |
56 |
{ |
{ |
105 |
|
|
106 |
}; |
}; |
107 |
|
|
108 |
#endif // _PDE_HPP_ |
#endif // PDE_HPP |
|
|
|