#3553 Temp LGR. Error handling, bug fixes

This commit is contained in:
Bjørn Erik Jensen
2018-10-29 10:52:59 +01:00
parent 04c07154b0
commit a1c8275eed
7 changed files with 449 additions and 130 deletions

View File

@@ -91,24 +91,20 @@ void RicfExportLgrForCompletions::execute()
}
caf::VecIjk lgrCellCounts(m_refinementI, m_refinementJ, m_refinementK);
bool lgrIntersected = false;
bool intersectingOtherLgrs = false;
for (const auto wellPath : wellPaths)
{
if (wellPath)
{
try
{
feature->exportLgrsForWellPath(exportFolder, wellPath, eclipseCase, m_timeStep, lgrCellCounts, m_splitType(),
{RigCompletionData::PERFORATION, RigCompletionData::FRACTURE, RigCompletionData::FISHBONES});
}
catch(CreateLgrException e)
{
lgrIntersected = true;
}
bool intersectingLgrs = false;
feature->exportLgrsForWellPath(exportFolder, wellPath, eclipseCase, m_timeStep, lgrCellCounts, m_splitType(),
{RigCompletionData::PERFORATION, RigCompletionData::FRACTURE, RigCompletionData::FISHBONES}, &intersectingLgrs);
if (intersectingLgrs) intersectingOtherLgrs = true;
}
}
if (lgrIntersected)
if (intersectingOtherLgrs)
{
RiaLogging::error("exportLgrForCompletions: At least one completion intersects with an LGR. No output for those completions produced");
}