diff --git a/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunction.H b/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunction.H index afa382407c..416b1d9249 100644 --- a/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunction.H +++ b/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunction.H @@ -72,7 +72,7 @@ protected: word invertedTableName_; //- Inverted table - uniformInterpolationTable invertedTable_; + uniformInterpolationTable invertedTable_; public: @@ -121,7 +121,8 @@ public: inline const word& invertedTableName() const; //- Return the inverted table - inline const uniformInterpolationTable& invertedTable() const; + inline const uniformInterpolationTable& + invertedTable() const; // I-O diff --git a/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunctionI.H b/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunctionI.H index 4fbe48d3fe..1b70904a66 100644 --- a/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunctionI.H +++ b/applications/utilities/preProcessing/wallFunctionTable/tabulatedWallFunction/tabulatedWallFunction/tabulatedWallFunctionI.H @@ -35,7 +35,7 @@ Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTableName() const } -inline const Foam::uniformInterpolationTable& +inline const Foam::uniformInterpolationTable& Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTable() const { return invertedTable_; diff --git a/src/OpenFOAM/Make/files b/src/OpenFOAM/Make/files index dc5fc33491..2823c2a9ec 100644 --- a/src/OpenFOAM/Make/files +++ b/src/OpenFOAM/Make/files @@ -509,7 +509,6 @@ meshes/preservePatchTypes/preservePatchTypes.C interpolations = interpolations interpolation = $(interpolations)/interpolation $(interpolations)/patchToPatchInterpolation/PatchToPatchInterpolationName.C -$(interpolations)/uniformInterpolationTable/uniformInterpolationTable.C algorithms/MeshWave/MeshWaveName.C algorithms/MeshWave/FaceCellWaveName.C diff --git a/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C b/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C index 33cbc5e917..6ce66c2d78 100644 --- a/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C +++ b/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C @@ -27,20 +27,14 @@ License #include "uniformInterpolationTable.H" #include "Time.H" -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -namespace Foam -{ - defineTypeNameAndDebug(uniformInterpolationTable, 0); -} - // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // -void Foam::uniformInterpolationTable::checkTable() const +template +void Foam::uniformInterpolationTable::checkTable() const { if (size() < 2) { - FatalErrorIn("uniformInterpolationTable::checkTable()") + FatalErrorIn("uniformInterpolationTable::checkTable()") << "Table " << name() << ": must have at least 2 values." << nl << "Table size = " << size() << nl << " min, interval width = " << x0_ << ", " << dx_ << nl @@ -51,7 +45,8 @@ void Foam::uniformInterpolationTable::checkTable() const // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::uniformInterpolationTable::uniformInterpolationTable +template +Foam::uniformInterpolationTable::uniformInterpolationTable ( const IOobject& io, bool readFields @@ -79,7 +74,8 @@ Foam::uniformInterpolationTable::uniformInterpolationTable } -Foam::uniformInterpolationTable::uniformInterpolationTable +template +Foam::uniformInterpolationTable::uniformInterpolationTable ( const word& tableName, const objectRegistry& db, @@ -106,7 +102,7 @@ Foam::uniformInterpolationTable::uniformInterpolationTable { scalar xMax = readScalar(dict.lookup("xMax")); label nIntervals = static_cast