Make well log curves work on statistics cases

This commit is contained in:
Gaute Lindkvist 2019-11-29 16:05:21 +01:00
parent d09e33f6d8
commit 7ffdba0437

View File

@ -38,8 +38,10 @@ std::vector<const RigWellPath*> RiaSimWellBranchTools::simulationWellBranches( c
RimProject* proj = app->project(); RimProject* proj = app->project();
// Find first case containing the specified simulation well // Find first case containing the specified simulation well
auto simCases = proj->eclipseCases(); std::vector<RimEclipseCase*> simCases;
auto caseItr = std::find_if( simCases.begin(), simCases.end(), [&simWellName]( const RimEclipseCase* eclCase ) { proj->descendantsIncludingThisOfType( simCases );
auto caseItr = std::find_if( simCases.begin(), simCases.end(), [&simWellName]( const RimEclipseCase* eclCase ) {
const auto& eclData = eclCase->eclipseCaseData(); const auto& eclData = eclCase->eclipseCaseData();
return eclData != nullptr && eclData->hasSimulationWell( simWellName ); return eclData != nullptr && eclData->hasSimulationWell( simWellName );
} ); } );