diff --git a/src/OpenFOAM/coordinateSystems/coordinateRotation/coordinateRotation.H b/src/OpenFOAM/coordinateSystems/coordinateRotation/coordinateRotation.H index 2e95a146c..d2c653665 100644 --- a/src/OpenFOAM/coordinateSystems/coordinateRotation/coordinateRotation.H +++ b/src/OpenFOAM/coordinateSystems/coordinateRotation/coordinateRotation.H @@ -139,9 +139,15 @@ public: //- Construct from dictionary coordinateRotation(const dictionary&); + //- Return clone + autoPtr clone() const + { + return autoPtr(new coordinateRotation(*this)); + } // Declare run-time constructor selection table +#ifndef SWIG declareRunTimeSelectionTable ( autoPtr, @@ -152,6 +158,7 @@ public: ), (dict) ); +#endif // Selectors diff --git a/src/OpenFOAM/coordinateSystems/coordinateSystem.H b/src/OpenFOAM/coordinateSystems/coordinateSystem.H index 51dd75b1c..4f852e038 100644 --- a/src/OpenFOAM/coordinateSystems/coordinateSystem.H +++ b/src/OpenFOAM/coordinateSystems/coordinateSystem.H @@ -166,6 +166,7 @@ class coordinateSystem //- Global-to-Local transformation tensor tensor Rtr_; + protected: // Protected Member Functions @@ -249,8 +250,10 @@ public: return autoPtr(new coordinateSystem(*this)); } + // Declare run-time constructor selection table +#ifndef SWIG declareRunTimeSelectionTable ( autoPtr, @@ -275,6 +278,8 @@ public: ), (name, origin, cr) ); +#endif + // Selectors diff --git a/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.H b/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.H index abb569f09..90958ad4b 100644 --- a/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.H +++ b/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.H @@ -47,7 +47,7 @@ namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Interpolate field to cell center. +// Interpolate field to cell center template Type interpolatePointToCell ( diff --git a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H index 6ca9028a5..3d9966d7f 100644 --- a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H +++ b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H @@ -102,6 +102,7 @@ public: // Declare run-time New selection table +#ifndef SWIG declareRunTimeNewSelectionTable ( autoPtr, @@ -114,6 +115,7 @@ public: ), (U, phi, lamTransportModel) ); +#endif // Constructors @@ -130,7 +132,7 @@ public: // Selectors //- Return a reference to the selected turbulence model - static autoPtr New + static autoPtr New ( const volVectorField& U, const surfaceScalarField& phi,