Skip to content
Snippets Groups Projects
Commit 14973e39 authored by Henry Weller's avatar Henry Weller
Browse files

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)'.
parent c007fcdb
Branches
Tags
No related merge requests found
......@@ -889,7 +889,6 @@ DebugSwitches
wallHeatTransfer 0;
wallLayerCells 0;
wallModel 0;
warnUnboundedGauss 1;
waveTransmissive 0;
wedge 0;
weighted 0;
......
......@@ -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
......
......@@ -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)
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment