mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3694 Stimplan : Add support for effective width using unit mm
This commit is contained in:
@@ -139,6 +139,10 @@ double RiaEclipseUnitTools::convertToMeter(double sourceValue, const QString& so
|
||||
{
|
||||
return sourceValue / 100.0;
|
||||
}
|
||||
else if (timmed.compare("mm", Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
return sourceValue / 1000.0;
|
||||
}
|
||||
else if (timmed.compare("in", Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
return RiaEclipseUnitTools::inchToMeter(sourceValue);
|
||||
@@ -171,6 +175,11 @@ double RiaEclipseUnitTools::convertToFeet(double sourceValue, const QString& sou
|
||||
double meter = sourceValue / 100.0;
|
||||
return RiaEclipseUnitTools::meterToFeet(meter);
|
||||
}
|
||||
else if (timmed.compare("mm", Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
double meter = sourceValue / 1000.0;
|
||||
return RiaEclipseUnitTools::meterToFeet(meter);
|
||||
}
|
||||
else if (timmed.compare("m", Qt::CaseInsensitive) == 0 || timmed.compare("md-m", Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
return RiaEclipseUnitTools::meterToFeet(sourceValue);
|
||||
|
||||
Reference in New Issue
Block a user