isDone method
- double time
override
Whether the simulation is "done" at the given time.
Implementation
@override
bool isDone(double time) {
return nearZero(_solution.x(time), tolerance.distance) &&
nearZero(_solution.dx(time), tolerance.velocity);
}