mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Statistics Contourmap UI updates (#12060)
* Enable time step selections and controls in view * Support loading just what we need for statistics contour maps by using custom reader settings * Close case once done with it unless there are active views. * Add selection of user interface case (for result selection, display of wells, faults...) * Avoid int overflow for nested progresses by using double * Improve auto naming * Misc. UI improvements
This commit is contained in:
@@ -58,7 +58,7 @@ bool RifReaderOpmCommonActive::importGrid( RigMainGrid* /* mainGrid*/, RigEclips
|
||||
RigActiveCellGrid* activeGrid = new RigActiveCellGrid();
|
||||
eclipseCaseData->setMainGrid( activeGrid );
|
||||
|
||||
caf::ProgressInfo progInfo( 5, "Importing Eclipse Grid" );
|
||||
caf::ProgressInfo progInfo( 4, "Importing Eclipse Grid" );
|
||||
|
||||
Opm::EclIO::EGrid opmGrid( m_gridFileName );
|
||||
|
||||
@@ -119,7 +119,7 @@ bool RifReaderOpmCommonActive::importGrid( RigMainGrid* /* mainGrid*/, RigEclips
|
||||
activeCellInfo->setGridCount( 1 + numLGRs );
|
||||
fractureActiveCellInfo->setGridCount( 1 + numLGRs );
|
||||
|
||||
auto task = progInfo.task( "Getting Active Cell Information", 1 );
|
||||
auto task = progInfo.task( "Getting Active Cell Information" );
|
||||
|
||||
for ( int lgrIdx = 0; lgrIdx < numLGRs; lgrIdx++ )
|
||||
{
|
||||
@@ -163,12 +163,12 @@ bool RifReaderOpmCommonActive::importGrid( RigMainGrid* /* mainGrid*/, RigEclips
|
||||
.arg( QString::fromStdString( RiaStdStringTools::formatThousandGrouping( opmGrid.totalActiveCells() ) ) )
|
||||
.arg( QString::fromStdString( RiaStdStringTools::formatThousandGrouping( opmGrid.totalNumberOfCells() ) ) ) );
|
||||
|
||||
auto task = progInfo.task( "Loading Active Cell Main Grid Geometry", 1 );
|
||||
auto task = progInfo.task( "Loading Active Cell Main Grid Geometry" );
|
||||
transferActiveGeometry( opmGrid, opmGrid, activeGrid, activeGrid, eclipseCaseData );
|
||||
|
||||
bool hasParentInfo = ( lgr_parent_names.size() >= (size_t)numLGRs );
|
||||
|
||||
auto task2 = progInfo.task( "Loading Active Cell LGR Grid Geometry ", 1 );
|
||||
auto task2 = progInfo.task( "Loading Active Cell LGR Grid Geometry" );
|
||||
|
||||
for ( int lgrIdx = 0; lgrIdx < numLGRs; lgrIdx++ )
|
||||
{
|
||||
@@ -193,7 +193,7 @@ bool RifReaderOpmCommonActive::importGrid( RigMainGrid* /* mainGrid*/, RigEclips
|
||||
|
||||
if ( isNNCsEnabled() )
|
||||
{
|
||||
auto task = progInfo.task( "Loading NNC data", 1 );
|
||||
auto task = progInfo.task( "Loading NNC data" );
|
||||
transferStaticNNCData( opmGrid, lgrGrids, activeGrid );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user