diff --git a/src/meshTools/coordinate/systems/cartesianCS.H b/src/meshTools/coordinate/systems/cartesianCS.H index 860cb6b800..94d712ed58 100644 --- a/src/meshTools/coordinate/systems/cartesianCS.H +++ b/src/meshTools/coordinate/systems/cartesianCS.H @@ -115,6 +115,12 @@ public: // \param dictName If non-empty, the sub-dictionary to use. cartesian(const dictionary& dict, const word& dictName); + //- Return clone + virtual autoPtr clone() const + { + return autoPtr::NewFrom(*this); + } + //- Destructor virtual ~cartesian() = default; diff --git a/src/meshTools/coordinate/systems/coordinateSystem.H b/src/meshTools/coordinate/systems/coordinateSystem.H index 619f2af5f6..e57f691e61 100644 --- a/src/meshTools/coordinate/systems/coordinateSystem.H +++ b/src/meshTools/coordinate/systems/coordinateSystem.H @@ -327,7 +327,7 @@ public: //- Return clone - autoPtr clone() const + virtual autoPtr clone() const { return autoPtr::New(*this); } diff --git a/src/meshTools/coordinate/systems/cylindricalCS.H b/src/meshTools/coordinate/systems/cylindricalCS.H index 8a8291251c..53c7349260 100644 --- a/src/meshTools/coordinate/systems/cylindricalCS.H +++ b/src/meshTools/coordinate/systems/cylindricalCS.H @@ -154,6 +154,13 @@ public: // \param dictName If non-empty, the sub-dictionary to use. cylindrical(const dictionary& dict, const word& dictName); + //- Return clone + virtual autoPtr clone() const + { + return autoPtr::NewFrom(*this); + } + + //- Destructor virtual ~cylindrical() = default; diff --git a/src/meshTools/coordinate/systems/indirectCS.H b/src/meshTools/coordinate/systems/indirectCS.H index 1fd334218c..2ae4160cd5 100644 --- a/src/meshTools/coordinate/systems/indirectCS.H +++ b/src/meshTools/coordinate/systems/indirectCS.H @@ -141,6 +141,12 @@ public: //- Construct from global lookup indirect(const objectRegistry& obr, const dictionary& dict); + //- Return clone + virtual autoPtr clone() const + { + return autoPtr::NewFrom(*this); + } + //- Destructor virtual ~indirect() = default;