mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
pre-proto - Added handling of case where fracture templates have been deleted.
This commit is contained in:
parent
fa638243ab
commit
ab7b86111e
@ -200,7 +200,8 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
|
||||
{
|
||||
//perforationLength = m_fractureTemplate->perforationLength();
|
||||
//TODO: Find out if performationLength should be in RimFractureTemplate or in RimEllipseFracTemplate
|
||||
azimuth = m_fractureTemplate->azimuthAngle();
|
||||
if (attachedFractureDefinition()) azimuth = m_fractureTemplate->azimuthAngle();
|
||||
else azimuth = 0.0;
|
||||
}
|
||||
|
||||
if (changedField == &azimuth ||
|
||||
|
@ -95,7 +95,8 @@ void RimSimWellFracture::setAzimuth()
|
||||
}
|
||||
else //Azimuth value read from template
|
||||
{
|
||||
azimuth = attachedFractureDefinition()->azimuthAngle;
|
||||
if (attachedFractureDefinition()) azimuth = attachedFractureDefinition()->azimuthAngle;
|
||||
else azimuth = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user