coordinateSystems: Added missing clone functions

This commit is contained in:
Henry Weller
2020-09-29 09:34:12 +01:00
parent e8c5163f82
commit b23c3465f9
3 changed files with 17 additions and 6 deletions

View File

@ -106,6 +106,12 @@ public:
//- Construct from dictionary
cartesianCS(const word&, const dictionary&);
//- Construct and return a clone
virtual autoPtr<coordinateSystem> clone() const
{
return autoPtr<coordinateSystem>(new cartesianCS(*this));
}
//- Destructor
virtual ~cartesianCS();

View File

@ -160,12 +160,11 @@ public:
//- Construct from dictionary with a given name
coordinateSystem(const word& name, const dictionary&);
//- Return clone
autoPtr<coordinateSystem> clone() const
{
return autoPtr<coordinateSystem>(new coordinateSystem(*this));
}
//- Construct and return a clone
virtual autoPtr<coordinateSystem> clone() const
{
return autoPtr<coordinateSystem>(new coordinateSystem(*this));
}
// Declare run-time constructor selection table

View File

@ -114,6 +114,12 @@ public:
//- Construct from dictionary and name
cylindricalCS(const word&, const dictionary&);
//- Construct and return a clone
virtual autoPtr<coordinateSystem> clone() const
{
return autoPtr<coordinateSystem>(new cylindricalCS(*this));
}
//- Destructor
virtual ~cylindricalCS();