mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8103 Ensemble Well Logs: Index_K not available as property for geogrid
Made "Index K" available for grdecl, fixed crash, and disabled the depth equalization when "Index K" is missing in the las files. Fixes #8103.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "RiaOptionItemFactory.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RiaResultNames.h"
|
||||
#include "RigWellLogCurveData.h"
|
||||
#include "RigWellPath.h"
|
||||
|
||||
@@ -890,6 +891,13 @@ void RimDepthTrackPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderi
|
||||
caf::PdmUiGroup* ensembleWellLogGroup = uiOrdering.addNewGroup( "Ensemble Well Log" );
|
||||
ensembleWellLogGroup->add( &m_depthEqualization );
|
||||
ensembleWellLogGroup->add( &m_ensembleCurveSet );
|
||||
|
||||
// Disable depth equalization if any of the ensmble is missing k-layer info
|
||||
bool hasKLayerIndex = true;
|
||||
for ( auto wellLogCurveSet : ensembleWellLogCurveSets )
|
||||
if ( !wellLogCurveSet->hasPropertyInFile( RiaResultNames::indexKResultName() ) ) hasKLayerIndex = false;
|
||||
|
||||
m_depthEqualization.uiCapability()->setUiReadOnly( !hasKLayerIndex );
|
||||
}
|
||||
|
||||
uiOrdering.skipRemainingFields( true );
|
||||
|
||||
Reference in New Issue
Block a user