mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2995 Plot editor. Show no default curve if ensemble data is present
This commit is contained in:
@@ -381,7 +381,11 @@ void RiuSummaryCurveDefSelection::setDefaultSelection(const std::vector<SummaryS
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
auto allSumCases = proj->allSummaryCases();
|
||||
if (allSumCases.size() > 0)
|
||||
auto allSumGroups = proj->summaryGroups();
|
||||
bool hasEnsembles = std::count_if(allSumGroups.begin(), allSumGroups.end(),
|
||||
[](const auto& sumGroup) { return sumGroup->isEnsemble(); }) > 0;
|
||||
|
||||
if (allSumCases.size() > 0 && !hasEnsembles)
|
||||
{
|
||||
RifEclipseSummaryAddress defaultAddress = RifEclipseSummaryAddress::fieldAddress("FOPT");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user