From 14973e39a6ccd02ba153a385098d525bd892d017 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Fri, 9 Dec 2016 16:36:56 +0000
Subject: [PATCH] gaussConvectionScheme: Removed temporary warnUnboundedGauss
 debug switch

which provided warning about backward-compatibility issue with setting div
schemes for steady-state.  It caused confusion by generating incorrect warning
messages for compressible cases for which the 'bounded' should NOT be applied to
the 'div(phid,p)'.
---
 etc/controlDict                               |  1 -
 .../gaussConvectionScheme.H                   | 29 +------------------
 .../gaussConvectionSchemes.C                  |  7 +----
 3 files changed, 2 insertions(+), 35 deletions(-)

diff --git a/etc/controlDict b/etc/controlDict
index 35dad2b967..ed0606904d 100644
--- a/etc/controlDict
+++ b/etc/controlDict
@@ -889,7 +889,6 @@ DebugSwitches
     wallHeatTransfer    0;
     wallLayerCells      0;
     wallModel           0;
-    warnUnboundedGauss  1;
     waveTransmissive    0;
     wedge               0;
     weighted            0;
diff --git a/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionScheme.H b/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionScheme.H
index 511754910a..14a19b57e4 100644
--- a/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionScheme.H
+++ b/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionScheme.H
@@ -36,7 +36,6 @@ SourceFiles
 #define gaussConvectionScheme_H
 
 #include "convectionScheme.H"
-#include "etcFiles.H"
 
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
@@ -48,10 +47,6 @@ namespace Foam
 namespace fv
 {
 
-//- Temporary debug switch to provide warning about backward-compatibility
-//  issue with setting div schemes for steady-state
-extern int warnUnboundedGauss;
-
 /*---------------------------------------------------------------------------*\
                        Class gaussConvectionScheme Declaration
 \*---------------------------------------------------------------------------*/
@@ -108,29 +103,7 @@ public:
             (
                 surfaceInterpolationScheme<Type>::New(mesh, faceFlux, is)
             )
-        {
-            is.rewind();
-            word bounded(is);
-
-            if
-            (
-                warnUnboundedGauss
-             && word(mesh.ddtScheme("default")) == "steadyState"
-             && bounded != "bounded"
-            )
-            {
-                fileNameList controlDictFiles(findEtcFiles("controlDict"));
-
-                IOWarningInFunction(is)
-                    << "Unbounded 'Gauss' div scheme used in "
-                       "steady-state solver, use 'bounded Gauss' "
-                       "to ensure boundedness.\n"
-                    << "    To remove this warning switch off "
-                    << "'warnUnboundedGauss' in "
-                    << controlDictFiles[controlDictFiles.size()-1]
-                    << endl;
-            }
-        }
+        {}
 
 
     // Member Functions
diff --git a/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionSchemes.C b/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionSchemes.C
index 65386824bc..c5ac92905f 100644
--- a/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionSchemes.C
+++ b/src/finiteVolume/finiteVolume/convectionSchemes/gaussConvectionScheme/gaussConvectionSchemes.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2015 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2016 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -28,11 +28,6 @@ License
 
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
-int Foam::fv::warnUnboundedGauss
-(
-    Foam::debug::debugSwitch("warnUnboundedGauss", true)
-);
-
 makeFvConvectionScheme(gaussConvectionScheme)
 
 // ************************************************************************* //
-- 
GitLab