unit conversion for the PLYSHLOG table.

insteading handling it in the opm-parser
This commit is contained in:
Kai Bao
2015-06-05 09:13:25 +02:00
parent a897501521
commit 11ad42ee22

View File

@@ -163,6 +163,15 @@ namespace Opm
water_vel_vals_ = plyshlogTable.getWaterVelocityColumn();
shear_vrf_vals_ = plyshlogTable.getShearMultiplierColumn();
// do the unit version here for the water_vel_vals_
Opm::UnitSystem unitSystem = *deck->getActiveUnitSystem();
double siFactor = unitSystem.parse("Length/Time")->getSIScaling();
for (size_t i = 0; i < water_vel_vals_.size(); ++i) {
water_vel_vals_[i] *= siFactor;
}
plyshlog_ref_conc_ = plyshlogTable.getRefPolymerConcentration();
if(plyshlogTable.hasRefSalinity()) {