Merge pull request #3777 from akva2/fix_perf_range_deref
fixed: pass through perf-range as an optional
This commit is contained in:
commit
a74b146841
@ -151,7 +151,7 @@ namespace RestartIO {
|
||||
void updateSegment(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
std::size_t compseg_insert_index,
|
||||
const std::pair<double,double>& perf_range);
|
||||
const std::optional<std::pair<double,double>>& perf_range);
|
||||
std::size_t sort_value() const;
|
||||
const bool& getDefaultSatTabId() const;
|
||||
void setDefaultSatTabId(bool id);
|
||||
|
@ -331,7 +331,8 @@ namespace {
|
||||
connection.updateSegment(compseg.segment_number,
|
||||
cdepth,
|
||||
compseg.m_seqIndex,
|
||||
{ compseg.m_distance_start, compseg.m_distance_end });
|
||||
std::make_pair(compseg.m_distance_start,
|
||||
compseg.m_distance_end));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@ const std::optional<std::pair<double, double>>& Connection::perf_range() const {
|
||||
void Connection::updateSegment(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
std::size_t compseg_insert_index,
|
||||
const std::pair<double, double>& perf_range) {
|
||||
const std::optional<std::pair<double, double>>& perf_range) {
|
||||
this->segment_number = segment_number_arg;
|
||||
this->center_depth = center_depth_arg;
|
||||
this->m_sort_value = compseg_insert_index;
|
||||
|
@ -519,7 +519,7 @@ namespace Opm {
|
||||
prev->updateSegment(conSegNo,
|
||||
depth,
|
||||
css_ind,
|
||||
*perf_range);
|
||||
perf_range);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user