mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1301 - pre-proto - Setting stimPlan Fracture template unit system based on unit of conductivity in input stimplan file.
This commit is contained in:
@@ -220,6 +220,21 @@ void RimStimPlanFractureTemplate::readStimPlanXMLFile(QString * errorMessage)
|
|||||||
|
|
||||||
RiaLogging::info(QString("%1 [%2]").arg(parameter, unit));
|
RiaLogging::info(QString("%1 [%2]").arg(parameter, unit));
|
||||||
|
|
||||||
|
if (parameter == "CONDUCTIVITY")
|
||||||
|
{
|
||||||
|
if (unit == "md-ft")
|
||||||
|
{
|
||||||
|
fractureTemplateUnit = RimDefines::UNITS_FIELD;
|
||||||
|
RiaLogging::info(QString("Setting unit system to Field for StimPlan fracture template %1").arg(name));
|
||||||
|
}
|
||||||
|
if (unit == "md-m")
|
||||||
|
{
|
||||||
|
fractureTemplateUnit = RimDefines::UNITS_METRIC;
|
||||||
|
RiaLogging::info(QString("Setting unit system to Metric for StimPlan fracture template %1").arg(name));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (xmlStream2.name() == "time")
|
else if (xmlStream2.name() == "time")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user