mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5506 Use START_AT_FIRST_TARGET for well paths created with old ResInsight versions
This commit is contained in:
parent
c0124f3bf4
commit
56a65742c4
@ -21,6 +21,7 @@
|
|||||||
#include "WellPathCommands/PointTangentManipulator/RicWellPathGeometry3dEditor.h"
|
#include "WellPathCommands/PointTangentManipulator/RicWellPathGeometry3dEditor.h"
|
||||||
#include "WellPathCommands/RicCreateWellTargetsPickEventHandler.h"
|
#include "WellPathCommands/RicCreateWellTargetsPickEventHandler.h"
|
||||||
|
|
||||||
|
#include "RiaApplication.h"
|
||||||
#include "RiaFieldHandleTools.h"
|
#include "RiaFieldHandleTools.h"
|
||||||
#include "RiaJCurveCalculator.h"
|
#include "RiaJCurveCalculator.h"
|
||||||
#include "RiaLogging.h"
|
#include "RiaLogging.h"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
#include "RigWellPath.h"
|
#include "RigWellPath.h"
|
||||||
|
|
||||||
#include "RimModeledWellPath.h"
|
#include "RimModeledWellPath.h"
|
||||||
|
#include "RimProject.h"
|
||||||
#include "RimWellPathTarget.h"
|
#include "RimWellPathTarget.h"
|
||||||
|
|
||||||
#include "RiuViewerCommands.h"
|
#include "RiuViewerCommands.h"
|
||||||
@ -100,7 +102,6 @@ RimWellPathGeometryDef::RimWellPathGeometryDef()
|
|||||||
RiaFieldhandleTools::disableWriteAndSetFieldHidden( &m_referencePointXyz_OBSOLETE );
|
RiaFieldhandleTools::disableWriteAndSetFieldHidden( &m_referencePointXyz_OBSOLETE );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( &m_wellStartType, "WellStartType", "Start Type", "", "", "" );
|
CAF_PDM_InitFieldNoDefault( &m_wellStartType, "WellStartType", "Start Type", "", "", "" );
|
||||||
m_wellStartType.xmlCapability()->disableIO();
|
|
||||||
|
|
||||||
/// To be removed ?
|
/// To be removed ?
|
||||||
CAF_PDM_InitFieldNoDefault( &m_parentWell, "ParentWell", "Parent Well", "", "", "" );
|
CAF_PDM_InitFieldNoDefault( &m_parentWell, "ParentWell", "Parent Well", "", "", "" );
|
||||||
@ -578,4 +579,9 @@ void RimWellPathGeometryDef::initAfterRead()
|
|||||||
m_referencePointXyz_OBSOLETE().y(),
|
m_referencePointXyz_OBSOLETE().y(),
|
||||||
-m_referencePointXyz_OBSOLETE().z() );
|
-m_referencePointXyz_OBSOLETE().z() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( RiaApplication::instance()->project()->isProjectFileVersionEqualOrOlderThan( "2019.12.1" ) )
|
||||||
|
{
|
||||||
|
m_wellStartType = START_AT_FIRST_TARGET;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user