Connections / segments: retain start and end from restart

This commit is contained in:
Joakim Hove
2020-03-26 20:42:00 +01:00
parent d827fd6da5
commit 7bc5272290
3 changed files with 3 additions and 13 deletions

View File

@@ -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,

View File

@@ -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());
}
}

View File

@@ -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 {