mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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)'.
This commit is contained in:
@ -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)
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user