Do not alter sort value when attaching segment from restart file
This commit is contained in:
parent
f613c15727
commit
22396d1b21
@ -125,6 +125,10 @@ namespace RestartIO {
|
||||
void setState(State state);
|
||||
void setComplnum(int compnum);
|
||||
void scaleWellPi(double wellPi);
|
||||
void updateSegmentRST(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
double start,
|
||||
double end);
|
||||
void updateSegment(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
std::size_t compseg_insert_index,
|
||||
|
@ -2968,15 +2968,13 @@ void Schedule::load_rst(const RestartIO::RstState& rst_state, const EclipseGrid&
|
||||
for (auto& connection : connections) {
|
||||
int segment_id = connection.segment();
|
||||
if (segment_id > 0) {
|
||||
std::size_t compsegs_insert_index = 0;
|
||||
double segment_start = 0;
|
||||
double segment_end = 0;
|
||||
const auto& segment = segments.at(segment_id);
|
||||
connection.updateSegment(segment.segmentNumber(),
|
||||
segment.depth(),
|
||||
compsegs_insert_index,
|
||||
segment_start,
|
||||
segment_end);
|
||||
connection.updateSegmentRST(segment.segmentNumber(),
|
||||
segment.depth(),
|
||||
segment_start,
|
||||
segment_end);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -250,6 +250,16 @@ Connection::Connection(const RestartIO::RstConnection& rst_connection, const Ecl
|
||||
this->m_segDistEnd = end;
|
||||
}
|
||||
|
||||
void Connection::updateSegmentRST(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
double start,
|
||||
double end) {
|
||||
this->segment_number = segment_number_arg;
|
||||
this->center_depth = center_depth_arg;
|
||||
this->m_segDistStart = start;
|
||||
this->m_segDistEnd = end;
|
||||
}
|
||||
|
||||
int Connection::segment() const {
|
||||
return this->segment_number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user