Commit 93f187cd authored by Andrew Bauer's avatar Andrew Bauer

Now updating the particle age properly when it exits the domain.

Change-Id: I1e75ab9f65a23c5038e1c8ce06a20464987dc364
parent 4db27d8e
......@@ -1478,12 +1478,11 @@ bool vtkParticleTracerBase::RetryWithPush(
info.CurrentPosition.x[3] += delT;
info.LocationState = this->Interpolator->TestPoint(info.CurrentPosition.x);
info.age += delT;
if (info.LocationState!=ID_OUTSIDE_ALL)
{
// a push helped the particle get back into a dataset,
info.age += delT;
info.ErrorCode = 6;
return 1;
}
......
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