#2234 Completion Export : Do not include unticked perf intervals in project tree

This commit is contained in:
Magne Sjaastad
2017-12-22 15:08:13 +01:00
parent 173ef575fd
commit bdfd3d4e04

View File

@@ -728,8 +728,11 @@ std::vector<RigCompletionData> RicWellPathExportCompletionDataFeature::generateP
const RigActiveCellInfo* activeCellInfo = settings.caseToApply->eclipseCaseData()->activeCellInfo(RiaDefines::MATRIX_MODEL);
if (wellPath->perforationIntervalCollection()->isChecked())
{
for (const RimPerforationInterval* interval : wellPath->perforationIntervalCollection()->perforations())
{
if (!interval->isChecked()) continue;
if (!interval->isActiveOnDate(settings.caseToApply->timeStepDates()[settings.timeStep])) continue;
using namespace std;
@@ -765,6 +768,7 @@ std::vector<RigCompletionData> RicWellPathExportCompletionDataFeature::generateP
completionData.push_back(completion);
}
}
}
return completionData;
}