Connections / segments: retain start and end from restart
This commit is contained in:
@@ -126,9 +126,7 @@ namespace RestartIO {
|
||||
void setComplnum(int compnum);
|
||||
void scaleWellPi(double wellPi);
|
||||
void updateSegmentRST(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
double start,
|
||||
double end);
|
||||
double center_depth_arg);
|
||||
void updateSegment(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
std::size_t compseg_insert_index,
|
||||
|
||||
@@ -2968,13 +2968,9 @@ void Schedule::load_rst(const RestartIO::RstState& rst_state, const EclipseGrid&
|
||||
for (auto& connection : connections) {
|
||||
int segment_id = connection.segment();
|
||||
if (segment_id > 0) {
|
||||
double segment_start = 0;
|
||||
double segment_end = 0;
|
||||
const auto& segment = segments.at(segment_id);
|
||||
connection.updateSegmentRST(segment.segmentNumber(),
|
||||
segment.depth(),
|
||||
segment_start,
|
||||
segment_end);
|
||||
segment.depth());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -251,13 +251,9 @@ Connection::Connection(const RestartIO::RstConnection& rst_connection, const Ecl
|
||||
}
|
||||
|
||||
void Connection::updateSegmentRST(int segment_number_arg,
|
||||
double center_depth_arg,
|
||||
double start,
|
||||
double end) {
|
||||
double center_depth_arg) {
|
||||
this->segment_number = segment_number_arg;
|
||||
this->center_depth = center_depth_arg;
|
||||
this->m_segDistStart = start;
|
||||
this->m_segDistEnd = end;
|
||||
}
|
||||
|
||||
int Connection::segment() const {
|
||||
|
||||
Reference in New Issue
Block a user