Add assert when formation names branch index is wrong in WellLogTrack

This commit is contained in:
Jacob Støren 2017-11-08 23:02:44 +01:00
parent 444ad2ff90
commit 5a075493f2

View File

@ -869,9 +869,15 @@ RigEclipseWellLogExtractor* RimWellLogTrack::createSimWellExtractor(RimWellLogPl
RimProject* proj = RiaApplication::instance()->project();
std::vector<const RigWellPath*> wellPaths = proj->simulationWellBranches(simWellName);
CVF_ASSERT(branchIndex < wellPaths.size());
if (wellPaths.size() == 0) return nullptr;
return (wellLogCollection->findOrCreateSimWellExtractor(simWellName, QString("Find or create sim well extractor"), wellPaths[branchIndex], eclipseCase->eclipseCaseData()));
return (wellLogCollection->findOrCreateSimWellExtractor(simWellName,
QString("Find or create sim well extractor"),
wellPaths[branchIndex],
eclipseCase->eclipseCaseData()));
}
//--------------------------------------------------------------------------------------------------