Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f72fb23d
Commit
f72fb23d
authored
Jul 23, 2018
by
mattijs
Browse files
ENH: snappyHexMesh: limit warnings to 100 points. Fixes
#941
.
parent
c26ef75d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/mesh/snappyHexMesh/snappyHexMeshDriver/snapParameters/snapParameters.H
View file @
f72fb23d
...
...
@@ -233,10 +233,6 @@ public:
{
return
minAreaRatio_
;
}
};
...
...
src/mesh/snappyHexMesh/snappyHexMeshDriver/snappySnapDriver.C
View file @
f72fb23d
...
...
@@ -2015,12 +2015,23 @@ Foam::vectorField Foam::snappySnapDriver::calcNearestSurface
{
if
(
snapSurf
[
pointi
]
==
-
1
)
{
WarningInFunction
<<
"For point:"
<<
pointi
<<
" coordinate:"
<<
localPoints
[
pointi
]
<<
" did not find any surface within:"
<<
minSnapDist
[
pointi
]
<<
" metre."
<<
endl
;
static
label
nWarn
=
0
;
if
(
nWarn
<
100
)
{
WarningInFunction
<<
"For point:"
<<
pointi
<<
" coordinate:"
<<
localPoints
[
pointi
]
<<
" did not find any surface within:"
<<
minSnapDist
[
pointi
]
<<
" metre."
<<
endl
;
nWarn
++
;
if
(
nWarn
==
100
)
{
WarningInFunction
<<
"Reached warning limit "
<<
nWarn
<<
". Suppressing further warnings."
<<
endl
;
}
}
}
}
...
...
src/mesh/snappyHexMesh/snappyHexMeshDriver/snappySnapDriverFeature.C
View file @
f72fb23d
...
...
@@ -328,9 +328,21 @@ void Foam::snappySnapDriver::calcNearestFace
}
else
{
WarningInFunction
<<
"Did not find surface near face centre "
<<
fc
[
hiti
]
static
label
nWarn
=
0
;
if
(
nWarn
<
100
)
{
WarningInFunction
<<
"Did not find surface near face centre "
<<
fc
[
hiti
]
<<
endl
;
nWarn
++
;
if
(
nWarn
==
100
)
{
WarningInFunction
<<
"Reached warning limit "
<<
nWarn
<<
". Suppressing further warnings."
<<
endl
;
}
}
}
}
}
...
...
@@ -392,9 +404,22 @@ void Foam::snappySnapDriver::calcNearestFace
}
else
{
WarningInFunction
<<
"Did not find surface near face centre "
<<
fc
[
hiti
]
<<
endl
;
static
label
nWarn
=
0
;
if
(
nWarn
<
100
)
{
WarningInFunction
<<
"Did not find surface near face centre "
<<
fc
[
hiti
]
<<
endl
;
nWarn
++
;
if
(
nWarn
==
100
)
{
WarningInFunction
<<
"Reached warning limit "
<<
nWarn
<<
". Suppressing further warnings."
<<
endl
;
}
}
}
}
...
...
@@ -3283,9 +3308,22 @@ void Foam::snappySnapDriver::reverseAttractMeshPoints
}
else
{
WarningInFunction
<<
"Did not find pp point near "
<<
featPt
<<
endl
;
static
label
nWarn
=
0
;
if
(
nWarn
<
100
)
{
WarningInFunction
<<
"Did not find pp point near "
<<
featPt
<<
endl
;
nWarn
++
;
if
(
nWarn
==
100
)
{
WarningInFunction
<<
"Reached warning limit "
<<
nWarn
<<
". Suppressing further warnings."
<<
endl
;
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment