Don't use the wrong index for the timestep
This commit is contained in:
parent
f272f54e56
commit
6becc16567
@ -258,11 +258,12 @@ static time_t current (const SimulatorTimer& timer) {
|
|||||||
|
|
||||||
// what each simulator consider to be the first time step
|
// what each simulator consider to be the first time step
|
||||||
const int ECL_TSTEP_BASE = 1;
|
const int ECL_TSTEP_BASE = 1;
|
||||||
const int OPM_TSTEP_BASE = 1;
|
|
||||||
|
|
||||||
// convert OPM time step numbers to Eclipse
|
// convert OPM time step numbers to Eclipse
|
||||||
static int stepNum (const SimulatorTimer& timer) {
|
static int stepNum (const SimulatorTimer& timer) {
|
||||||
return timer.currentStepNum () - OPM_TSTEP_BASE + ECL_TSTEP_BASE;
|
return timer.currentStepNum ()
|
||||||
|
- SimulatorTimer::FIRST_STEP
|
||||||
|
+ ECL_TSTEP_BASE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user