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
4002bacc
Commit
4002bacc
authored
Dec 07, 2010
by
mattijs
Browse files
BUG: sampledSet : handling empty sets
parent
a8ae8af7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/sampling/sampledSet/midPoint/midPointSet.C
View file @
4002bacc
...
...
@@ -53,7 +53,7 @@ void Foam::midPointSet::genSamples()
label
sampleI
=
0
;
while
(
true
)
while
(
true
&&
size
()
>
0
)
{
// calculate midpoint between sampleI and sampleI+1 (if in same segment)
while
...
...
src/sampling/sampledSet/midPointAndFace/midPointAndFaceSet.C
View file @
4002bacc
...
...
@@ -55,7 +55,7 @@ void Foam::midPointAndFaceSet::genSamples()
label
sampleI
=
0
;
while
(
true
)
while
(
true
&&
size
()
>
0
)
{
// sampleI is start of segment
...
...
src/sampling/sampledSet/sampledSets/sampledSets.C
View file @
4002bacc
...
...
@@ -96,6 +96,14 @@ void Foam::sampledSets::combineSampledSets
)
);
if
(
Pstream
::
master
()
&&
allCurveDist
.
size
()
==
0
)
{
WarningIn
(
"sampledSets::combineSampledSets(..)"
)
<<
"Sample set "
<<
samplePts
.
name
()
<<
" has zero points."
<<
endl
;
}
// Sort curveDist and use to fill masterSamplePts
SortableList
<
scalar
>
sortedDist
(
allCurveDist
);
indexSets
[
setI
]
=
sortedDist
.
indices
();
...
...
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