mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well Lateral : Connect new lateral close to total depth
This commit is contained in:
parent
282c6f3586
commit
2eced13e28
@ -20,6 +20,7 @@
|
||||
|
||||
#include "RicNewWellPathLateralAtDepthFeature.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
@ -47,6 +48,14 @@ void RicNewWellPathLateralFeature::onActionTriggered( bool isChecked )
|
||||
if ( !parentWellPath ) return;
|
||||
|
||||
double measuredDepth = 0.0;
|
||||
|
||||
if ( parentWellPath->wellPathGeometry() && parentWellPath->wellPathGeometry()->measuredDepths().size() > 2 )
|
||||
{
|
||||
// Create new well close to the total depth of parent well
|
||||
double mdCandidate = parentWellPath->wellPathGeometry()->measuredDepths().back() - 100.0;
|
||||
measuredDepth = std::max( 0.0, mdCandidate );
|
||||
}
|
||||
|
||||
RicNewWellPathLateralAtDepthFeature::createLateralAtMeasuredDepth( parentWellPath, measuredDepth );
|
||||
}
|
||||
|
||||
|
@ -598,6 +598,9 @@ void RimWellPathCollection::groupWellPaths( const std::vector<RimWellPath*>& wel
|
||||
|
||||
for ( auto wellPath : wellPathCommonName )
|
||||
{
|
||||
// Assign the group names as well name for export
|
||||
wellPath->completionSettings()->setWellNameForExport( groupName );
|
||||
|
||||
auto wellPathGeometry = wellPath->wellPathGeometry();
|
||||
if ( wellPathGeometry )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user