Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dg
dg
Commits
047782ca
Commit
047782ca
authored
Nov 10, 2016
by
Jonathan Lambrechts
Browse files
error when adding particles outside domain
parent
3eb57625
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/slimParticles/dgParticleTracker2D.cpp
View file @
047782ca
...
...
@@ -1009,6 +1009,10 @@ void particleArray::addParticlesAtPoint(dgGroupCollection* _group, int M, double
//Find group & element IDs
auto
r
=
_group
->
find
(
x0
,
y0
,
0
);
int
iGroup
=
r
.
first
,
iElem
=
r
.
second
;
if
(
r
.
first
==
-
1
){
Msg
::
Error
(
"cannot add particle at point : %g %g"
,
x0
,
y0
);
return
;
}
//Seed particles
for
(
int
i
=
0
;
i
<
M
;
i
++
)
{
...
...
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