mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve property linking
* Allow linking of property filters across cases with same IJK size * Recalculate when grid is replaced Find dependencies between calculations and order them accordingly
This commit is contained in:
@@ -30,7 +30,10 @@
|
||||
#include "RimEclipseContourMapView.h"
|
||||
#include "RimEclipseContourMapViewCollection.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimGridCalculation.h"
|
||||
#include "RimGridCalculationCollection.h"
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSummaryCaseMainCollection.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -63,6 +66,20 @@ void RimReloadCaseTools::reloadAllEclipseData( RimEclipseCase* eclipseCase, bool
|
||||
|
||||
eclipseCase->reloadEclipseGridFile();
|
||||
|
||||
std::vector<RimGridCalculation*> gridCalculations =
|
||||
RimProject::current()->gridCalculationCollection()->sortedGridCalculations();
|
||||
|
||||
for ( auto gridCalculation : gridCalculations )
|
||||
{
|
||||
bool recalculate = false;
|
||||
for ( auto inputCase : gridCalculation->inputCases() )
|
||||
{
|
||||
if ( inputCase == eclipseCase ) recalculate = true;
|
||||
}
|
||||
|
||||
if ( recalculate ) gridCalculation->calculate();
|
||||
}
|
||||
|
||||
updateAll3dViews( eclipseCase );
|
||||
|
||||
if ( reloadSummaryData )
|
||||
|
||||
Reference in New Issue
Block a user