Skip to content

Commit

Permalink
Fix update of grid nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Apr 15, 2024
1 parent 2e3d4e2 commit 00bacd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,15 +1063,6 @@ bool RimEclipseCase::openReserviorCase()
}
}

// Update grids node
{
std::vector<RimGridCollection*> gridColls = descendantsIncludingThisOfType<RimGridCollection>();
for ( RimGridCollection* gridCollection : gridColls )
{
gridCollection->syncFromMainEclipseGrid();
}
}

return true;
}

Expand Down
7 changes: 7 additions & 0 deletions ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ void RimEclipseView::propagateEclipseCaseToChildObjects()
faultResultSettings()->customFaultResult()->setEclipseCase( currentEclipseCase );
cellFilterCollection()->setCase( currentEclipseCase );
m_streamlineCollection->setEclipseCase( currentEclipseCase );

// Update grids node
std::vector<RimGridCollection*> gridColls = descendantsIncludingThisOfType<RimGridCollection>();
for ( RimGridCollection* gridCollection : gridColls )
{
gridCollection->syncFromMainEclipseGrid();
}
}

//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 00bacd5

Please sign in to comment.