mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
When no ternary component is present, hide TERNARY result
This commit is contained in:
parent
071abb2c97
commit
dbdd28fcde
@ -1453,7 +1453,8 @@ void RimReservoirView::updateLegends()
|
||||
|
||||
viewer()->removeOverlayItem(this->cellResult()->ternaryLegendConfig->legend());
|
||||
|
||||
if (this->cellResult()->isTernarySaturationSelected())
|
||||
size_t maxTimeStepCount = results->maxTimeStepCount();
|
||||
if (this->cellResult()->isTernarySaturationSelected() && maxTimeStepCount > 1)
|
||||
{
|
||||
RimReservoirCellResultsStorage* gridCellResults = this->cellResult()->currentGridCellResults();
|
||||
{
|
||||
|
@ -178,7 +178,12 @@ QList<caf::PdmOptionItemInfo> RimResultDefinition::calculateValueOptions(const c
|
||||
optionList.push_front(caf::PdmOptionItemInfo(RimDefines::combinedTransmissibilityResultName(), RimDefines::combinedTransmissibilityResultName()));
|
||||
}
|
||||
|
||||
if (m_resultTypeUiField == RimDefines::DYNAMIC_NATIVE)
|
||||
bool hasAtLeastOneTernaryComponent = false;
|
||||
if (varList.contains("SOIL")) hasAtLeastOneTernaryComponent = true;
|
||||
else if (varList.contains("SGAS")) hasAtLeastOneTernaryComponent = true;
|
||||
else if (varList.contains("SWAT")) hasAtLeastOneTernaryComponent = true;
|
||||
|
||||
if (m_resultTypeUiField == RimDefines::DYNAMIC_NATIVE && hasAtLeastOneTernaryComponent)
|
||||
{
|
||||
optionList.push_front(caf::PdmOptionItemInfo(RimDefines::ternarySaturationResultName(), RimDefines::ternarySaturationResultName()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user