mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
ERT: Temporary hack fix of crash on well reading with inordered timesteps.
p4#: 20408
This commit is contained in:
parent
5e38c909cf
commit
e8bf853231
@ -144,13 +144,13 @@ static int well_ts_get_index__( const well_ts_type * well_ts , int report_step ,
|
||||
|
||||
if (use_report) {
|
||||
if (report_step < first_node->report_nr)
|
||||
return -1; // Before the start
|
||||
return 0; // Before the start
|
||||
|
||||
if (report_step >= last_node->report_nr)
|
||||
return size - 1; // After end
|
||||
} else {
|
||||
if (sim_time < first_node->sim_time)
|
||||
return -1; // Before the start
|
||||
return 0; // Before the start
|
||||
|
||||
if (sim_time >= last_node->sim_time)
|
||||
return size - 1; // After end
|
||||
|
Loading…
Reference in New Issue
Block a user