Commit ffd704b1 authored by Thomas Witkowski's avatar Thomas Witkowski

* "number of timesteps" finished

parent 1defa4bc
......@@ -549,8 +549,10 @@ namespace AMDiS {
* computations must be done.
*/
inline bool reachedEndTime() {
return !(time < endTime - DBL_TOL ||
(nTimesteps > 0 && timestepNumber < nTimesteps));
if (nTimesteps > 0)
return !(timestepNumber < nTimesteps);
return !(time < endTime - DBL_TOL);
}
/** \brief
......
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