Skip to content
Snippets Groups Projects
Commit 38d168a7 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

ENH: meshWave: add a warning message for non-zero nUnset (#1513)

parent 958abd24
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -153,6 +153,13 @@ bool Foam::patchDistMethods::directionalMeshWave::correct
// Transfer number of unset values
this->nUnset_ = wave.nUnset();
if (this->nUnset_ > 0)
{
WarningInFunction
<< "Number of unset cells by directionalMeshWave: " << nUnset_
<< endl;
}
return this->nUnset_ > 0;
}
......
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -102,6 +102,13 @@ bool Foam::patchDistMethods::meshWave::correct(volScalarField& y)
// Transfer number of unset values
nUnset_ = wave.nUnset();
if (nUnset_ > 0)
{
WarningInFunction
<< "Number of unset cells by meshWave: " << nUnset_
<< endl;
}
return nUnset_ > 0;
}
......@@ -158,6 +165,13 @@ bool Foam::patchDistMethods::meshWave::correct
// Transfer number of unset values
nUnset_ = wave.nUnset();
if (nUnset_ > 0)
{
WarningInFunction
<< "Number of unset cells by meshWave: " << nUnset_
<< endl;
}
return nUnset_ > 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment