Two more small fixes

This commit is contained in:
Paul Egberts 2023-04-05 15:58:17 +02:00
parent e781a99ce4
commit 694bb016a7
2 changed files with 1 additions and 3 deletions

View File

@ -208,7 +208,6 @@ namespace {
}
void Schedule::handleWELTRAJ(HandlerContext& handlerContext) {
std::unordered_set<std::string> wells;
for (const auto& record : handlerContext.keyword) {
const std::string& wellNamePattern = record.getItem("WELL").getTrimmedString(0);
auto wellnames = this->wellNames(wellNamePattern, handlerContext);
@ -219,7 +218,6 @@ namespace {
connections->loadWELTRAJ(record, handlerContext.grid, name, handlerContext.keyword.location());
if (well2.updateConnections(connections, handlerContext.grid)) {
this->snapshots.back().wells.update( well2 );
wells.insert( name );
}
this->snapshots.back().wellgroup_events().addEvent( name, ScheduleEvents::COMPLETION_CHANGE);
}

View File

@ -599,7 +599,7 @@ namespace Opm {
if (defaultSatTable)
satTableId = props->satnum;
auto same_ijk = [&]( const Connection& c ) {
auto same_ijk = [I, J, k]( const Connection& c ) {
return c.sameCoordinate( I,J,k );
};