Added missing clone functions. Windows port
This commit is contained in:
parent
e6d4cbc331
commit
b64e76b5f9
2 changed files with 20 additions and 0 deletions
|
@ -756,6 +756,16 @@ public:
|
|||
lduMatrix(const lduMesh&, Istream&);
|
||||
|
||||
|
||||
//- Clone
|
||||
autoPtr<lduMatrix> clone() const
|
||||
{
|
||||
return autoPtr<lduMatrix>
|
||||
(
|
||||
new lduMatrix(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~lduMatrix();
|
||||
|
|
|
@ -232,6 +232,16 @@ public:
|
|||
fvMatrix(GeometricField<Type, fvPatchField, volMesh>&, Istream&);
|
||||
|
||||
|
||||
//- Clone
|
||||
tmp<fvMatrix<Type> > clone() const
|
||||
{
|
||||
return tmp<fvMatrix<Type> >
|
||||
(
|
||||
new fvMatrix<Type>(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~fvMatrix();
|
||||
|
|
Reference in a new issue