#1385 Fixed copy view problem, when flow diagnostics result was used.

Also fixed potential other problems due to same cause: resolve must be done before initAfterRead
This commit is contained in:
Jacob Støren
2017-04-03 12:33:27 +02:00
parent 3cefc2f7a8
commit 5e6018acb7
5 changed files with 20 additions and 10 deletions

View File

@@ -190,10 +190,8 @@ RimEclipseView* RimEclipseCase::createCopyAndAddView(const RimEclipseView* sourc
reservoirViews().push_back(rimEclipseView);
// Resolve references after reservoir view has been inserted into Rim structures
// Intersections referencing a well path/ simulation well requires this
// TODO: initAfterReadRecursively can probably be removed
rimEclipseView->initAfterReadRecursively();
rimEclipseView->resolveReferencesRecursively();
rimEclipseView->initAfterReadRecursively();
return rimEclipseView;
}