#2880 export completions if the the well path name is explictly provided even if unchecked

This commit is contained in:
Gaute Lindkvist
2018-05-09 12:40:57 +02:00
parent 43bb955ba2
commit 5310d28433
3 changed files with 22 additions and 22 deletions

View File

@@ -109,9 +109,13 @@ void RicfExportSimWellFractureCompletions::execute()
{
for (RimEclipseView* view : views)
{
std::copy(view->wellCollection()->wells.begin(),
view->wellCollection()->wells.end(),
std::back_inserter(simWells));
for (auto simWell : view->wellCollection()->wells)
{
if (simWell->showWell())
{
simWells.push_back(simWell);
}
}
}
}
else

View File

@@ -112,9 +112,13 @@ void RicfExportWellPathCompletions::execute()
std::vector<RimWellPath*> wellPaths;
if (m_wellPathNames().empty())
{
std::copy(RiaApplication::instance()->project()->activeOilField()->wellPathCollection->wellPaths().begin(),
RiaApplication::instance()->project()->activeOilField()->wellPathCollection->wellPaths().end(),
std::back_inserter(wellPaths));
for (auto wellPath : RiaApplication::instance()->project()->activeOilField()->wellPathCollection->wellPaths())
{
if (wellPath->showWellPath())
{
wellPaths.push_back(wellPath);
}
}
}
else
{