mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 04:00:57 -06:00
Fix location of ICV for MSW wells
* Show warning if no wells are visible * #9461 MSW: Start export of a lateral at the tie in location on parent well Previous implementation used the full well path for the lateral, including the part of the parent well up to sea level.
This commit is contained in:
parent
e4c0b45b15
commit
296718fd29
@ -18,15 +18,17 @@
|
||||
|
||||
#include "RicExportCompletionsForVisibleWellPathsFeature.h"
|
||||
|
||||
#include "RicWellPathExportCompletionDataFeature.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
#include "RicWellPathExportCompletionDataFeature.h"
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimWellMeasurementCollection.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
#include <QAction>
|
||||
@ -74,7 +76,7 @@ bool RicExportCompletionsForVisibleWellPathsFeature::isCommandEnabled()
|
||||
void RicExportCompletionsForVisibleWellPathsFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
std::vector<RimWellPath*> wellPaths = visibleWellPaths();
|
||||
CVF_ASSERT( wellPaths.size() > 0 );
|
||||
if ( wellPaths.empty() ) return RiaLogging::warning( "No visible well paths found, no data exported." );
|
||||
|
||||
std::vector<RimSimWellInView*> simWells;
|
||||
QString dialogTitle = "Export Completion Data for Visible Well Paths";
|
||||
|
@ -1002,10 +1002,14 @@ bool RicWellPathExportMswCompletionsImpl::generatePerforationsMswExportInfo(
|
||||
auto childMswBranch = createChildMswBranch( childWellPath );
|
||||
auto childCellIntersections = generateCellSegments( eclipseCase, childWellPath );
|
||||
|
||||
// Start MD of child well path at the tie in location
|
||||
const double tieInOnParentWellPath =
|
||||
childWellPath->wellPathTieIn() ? childWellPath->wellPathTieIn()->tieInMeasuredDepth() : initialMD;
|
||||
|
||||
if ( generatePerforationsMswExportInfo( eclipseCase,
|
||||
childWellPath,
|
||||
timeStep,
|
||||
initialMD,
|
||||
tieInOnParentWellPath,
|
||||
childCellIntersections,
|
||||
exportInfo,
|
||||
childMswBranch.get() ) )
|
||||
|
Loading…
Reference in New Issue
Block a user