Incorporating Swig interface: library changes. Origin: VulaSHAKA project

This commit is contained in:
Hrvoje Jasak 2010-10-15 19:55:56 +01:00
parent f9f34b6985
commit 291ffd4eed
4 changed files with 16 additions and 2 deletions

View file

@ -139,9 +139,15 @@ public:
//- Construct from dictionary
coordinateRotation(const dictionary&);
//- Return clone
autoPtr<coordinateRotation> clone() const
{
return autoPtr<coordinateRotation>(new coordinateRotation(*this));
}
// Declare run-time constructor selection table
#ifndef SWIG
declareRunTimeSelectionTable
(
autoPtr,
@ -152,6 +158,7 @@ public:
),
(dict)
);
#endif
// Selectors

View file

@ -166,6 +166,7 @@ class coordinateSystem
//- Global-to-Local transformation tensor
tensor Rtr_;
protected:
// Protected Member Functions
@ -249,8 +250,10 @@ public:
return autoPtr<coordinateSystem>(new coordinateSystem(*this));
}
// Declare run-time constructor selection table
#ifndef SWIG
declareRunTimeSelectionTable
(
autoPtr,
@ -275,6 +278,8 @@ public:
),
(name, origin, cr)
);
#endif
// Selectors

View file

@ -47,7 +47,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Interpolate field to cell center.
// Interpolate field to cell center
template<class Type>
Type interpolatePointToCell
(

View file

@ -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<turbulenceModel> New
static autoPtr<incompressible::turbulenceModel> New
(
const volVectorField& U,
const surfaceScalarField& phi,