mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1678 Bugfix to set property for polygon for stimplan fractures, to avoid potentially confusing error messages for stimplan files without conductivity.
This commit is contained in:
parent
0dfc76dd3e
commit
bcbb5202df
@ -217,7 +217,7 @@ bool RimStimPlanFractureTemplate::setBorderPolygonResultNameToDefault()
|
||||
}
|
||||
}
|
||||
//else: Set to first property
|
||||
if (resultNamesWithUnit().size() > 1)
|
||||
if (resultNamesWithUnit().size() > 0)
|
||||
{
|
||||
m_borderPolygonResultName = resultNamesWithUnit()[0].first;
|
||||
return true;
|
||||
@ -318,7 +318,7 @@ QString RimStimPlanFractureTemplate::getUnitForStimPlanParameter(QString paramet
|
||||
}
|
||||
|
||||
if (foundMultiple) RiaLogging::error(QString("Multiple units found for same parameter"));
|
||||
if (!found) RiaLogging::error(QString("Unit for parameter not found for %1 template").arg(name()));
|
||||
if (!found) RiaLogging::error(QString("Requested unit / parameter not found for %1 template").arg(name()));
|
||||
return unit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user