Skip to content
Snippets Groups Projects
Commit c2256e51 authored by Mark Olesen's avatar Mark Olesen
Browse files

change solvers, utilities, etc. to use while (..) time-looping idiom

- this (now deprecated) idiom:
      for (runTime++; !runTime.end(); runTime++) { ... }
  has a few problems:
    * stop-on-next-write will be off-by-one (ie, doesn't work)
    * function objects are not executed on exit with runTime.end()
  Fixing these problems is not really possible.

- this idiom
      while (runTime.run())
      {
          runTime++;
          ...
      }
  works without the above problems.
parent 5e7339fe
Branches
Tags
No related merge requests found
Showing
with 38 additions and 20 deletions
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