#3664 Pressure Depletion: report correct units for initial WBHP.

This commit is contained in:
Gaute Lindkvist 2018-11-12 10:05:35 +01:00
parent 97f3cbc18d
commit 37f1cde219

View File

@ -374,7 +374,8 @@ std::map<int, std::vector<std::pair<QString, QString>>> RicExportCompletionDataS
&currentWellPressure);
if (initialWellProductionTimeStep >= 0)
{
wellProductionStartStrings[initialWellProductionTimeStep].push_back(std::make_pair(wellPath->name(), QString("%1 Bar").arg(initialWellPressure, 4, 'f', 1)));
QString pressureUnits = RiaEclipseUnitTools::unitStringPressure(wellPath->unitSystem());
wellProductionStartStrings[initialWellProductionTimeStep].push_back(std::make_pair(wellPath->name(), QString("%1 %2").arg(initialWellPressure, 4, 'f', 1).arg(pressureUnits)));
}
}
}