mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add assert when formation names branch index is wrong in WellLogTrack
This commit is contained in:
parent
444ad2ff90
commit
5a075493f2
@ -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()));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user