mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
6365 additional stimplan xml parameters (#7318)
* #6365 StimPlan XML: Parse formation dip and fracture orientation. * #6365 Fracture: Use formation dip and fracture orientation from XML. * #6365 Fracture: Compare case insensitive, use enum class Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
This commit is contained in:
committed by
GitHub
parent
88b7a5807d
commit
751ebf7eb6
@@ -17,7 +17,7 @@ TEST( RifStimPlanXmlReaderTest, LoadFile )
|
||||
double conductivityScaleFactor = 1.0;
|
||||
RiaDefines::EclipseUnitSystem unit = RiaDefines::EclipseUnitSystem::UNITS_METRIC;
|
||||
QString errorMessage;
|
||||
RifStimPlanXmlReader::MirrorMode mode = RifStimPlanXmlReader::MIRROR_AUTO;
|
||||
RifStimPlanXmlReader::MirrorMode mode = RifStimPlanXmlReader::MirrorMode::MIRROR_AUTO;
|
||||
|
||||
cvf::ref<RigStimPlanFractureDefinition> fractureData;
|
||||
|
||||
@@ -43,7 +43,7 @@ TEST( RifStimPlanXmlReaderTest, LoadFileNewFormat )
|
||||
double conductivityScaleFactor = 1.0;
|
||||
RiaDefines::EclipseUnitSystem unit = RiaDefines::EclipseUnitSystem::UNITS_METRIC;
|
||||
QString errorMessage;
|
||||
RifStimPlanXmlReader::MirrorMode mode = RifStimPlanXmlReader::MIRROR_AUTO;
|
||||
RifStimPlanXmlReader::MirrorMode mode = RifStimPlanXmlReader::MirrorMode::MIRROR_AUTO;
|
||||
|
||||
cvf::ref<RigStimPlanFractureDefinition> fractureData;
|
||||
|
||||
@@ -63,3 +63,27 @@ TEST( RifStimPlanXmlReaderTest, LoadFileNewFormat )
|
||||
EXPECT_DOUBLE_EQ( 2804.160, fractureData->topPerfMd() );
|
||||
EXPECT_DOUBLE_EQ( 2804.770, fractureData->bottomPerfMd() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RifStimPlanXmlReaderTest, LoadFileNewFormatExtraParameters )
|
||||
{
|
||||
QString fileName = CASE_REAL_TEST_DATA_DIRECTORY + "contour_with_extra_parameters.xml";
|
||||
|
||||
double conductivityScaleFactor = 1.0;
|
||||
RiaDefines::EclipseUnitSystem unit = RiaDefines::EclipseUnitSystem::UNITS_METRIC;
|
||||
QString errorMessage;
|
||||
RifStimPlanXmlReader::MirrorMode mode = RifStimPlanXmlReader::MirrorMode::MIRROR_AUTO;
|
||||
|
||||
cvf::ref<RigStimPlanFractureDefinition> fractureData;
|
||||
|
||||
fractureData =
|
||||
RifStimPlanXmlReader::readStimPlanXMLFile( fileName, conductivityScaleFactor, mode, unit, &errorMessage );
|
||||
|
||||
EXPECT_TRUE( errorMessage.isEmpty() );
|
||||
EXPECT_TRUE( fractureData.notNull() );
|
||||
|
||||
EXPECT_DOUBLE_EQ( 12.34, fractureData->formationDip() );
|
||||
EXPECT_EQ( fractureData->orientation(), RigStimPlanFractureDefinition::Orientation::TRANSVERSE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user