Commit 047782ca authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

error when adding particles outside domain

parent 3eb57625
......@@ -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);
//Seed particles
for (int i=0; i<M; i++) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment