From 823b5622655c7215e4866f1f6c62b3c329d64b09 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Sun, 25 Jan 2015 22:31:14 +0000
Subject: [PATCH] v2f: separate instantiation of v2fBase from fWallFunction

---
 .../turbulenceModels/Make/files               |  2 +-
 .../turbulenceModels/RAS/v2f/v2fBase.C        | 41 +++++++++++++++++++
 .../fWallFunctionFvPatchScalarField.C         |  2 -
 3 files changed, 42 insertions(+), 3 deletions(-)
 create mode 100644 src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C

diff --git a/src/TurbulenceModels/turbulenceModels/Make/files b/src/TurbulenceModels/turbulenceModels/Make/files
index 1faa13d7db6..028ed811b40 100644
--- a/src/TurbulenceModels/turbulenceModels/Make/files
+++ b/src/TurbulenceModels/turbulenceModels/Make/files
@@ -1,5 +1,5 @@
 turbulenceModel.C
-
+RAS/v2f/v2fBase.C
 
 LESdelta = LES/LESdeltas
 
diff --git a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C
new file mode 100644
index 00000000000..5892cbd98f4
--- /dev/null
+++ b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C
@@ -0,0 +1,41 @@
+/*---------------------------------------------------------------------------*\
+  =========                 |
+  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
+   \\    /   O peration     |
+    \\  /    A nd           | Copyright (C) 2015 OpenFOAM Foundation
+     \\/     M anipulation  |
+-------------------------------------------------------------------------------
+License
+    This file is part of OpenFOAM.
+
+    OpenFOAM is free software: you can redistribute it and/or modify it
+    under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+    for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
+
+\*---------------------------------------------------------------------------*/
+
+#include "v2f.H"
+#include "addToRunTimeSelectionTable.H"
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+namespace Foam
+{
+namespace RASModels
+{
+
+    defineTypeNameAndDebug(v2fBase, 0);
+
+} // End namespace RASModels
+} // End namespace Foam
+
+// ************************************************************************* //
diff --git a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C
index c5c31269eb5..9b1aff3b6ae 100644
--- a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C
+++ b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C
@@ -37,8 +37,6 @@ namespace Foam
 namespace RASModels
 {
 
-    defineTypeNameAndDebug(v2fBase, 0);
-
 // * * * * * * * * * * * * Protected Member Functions  * * * * * * * * * * * //
 
 void fWallFunctionFvPatchScalarField::checkType()
-- 
GitLab