Make dist() call well-defined.
This commit is contained in:
parent
c1e1e4bdd1
commit
7b0a6d2556
@ -271,7 +271,7 @@ namespace Opm {
|
||||
if (start_ts_in_timesteps) {
|
||||
//Pick every n'th element, starting on start_timestep + (n-1), that is, every n'th element from ci_start_timestep - 1 for freq n > 1
|
||||
if (ci_timestep >= ci_start_timestep) {
|
||||
int dist = std::distance( ci_start_timestep - 1, ci_timestep );
|
||||
int dist = std::distance( ci_start_timestep, ci_timestep ) + 1;
|
||||
if ((dist % frequency) == 0) {
|
||||
timestep_right_frequency = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user