Skip to content
Snippets Groups Projects
Commit ffd704b1 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* "number of timesteps" finished

parent 1defa4bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment