#7493 Fracture definition: Check if unit system conversion is necessary.

This commit is contained in:
Kristian Bendiksen 2021-04-07 10:52:54 +02:00
parent 49042f4a34
commit fc7ac06b42

View File

@ -356,9 +356,13 @@ std::vector<std::vector<double>>
conductivityValues = this->getDataAtTimeIndex( resultName, conductivityUnitTextOnFile, activeTimeStepIndex );
// Check that the data is in the required unit system.
// Convert if not the case.
if ( requiredUnitSet != unitSet() )
{
// Convert to the conductivity unit system used by the fracture template
// The conductivity value is used in the computations of transmissibility when exporting COMPDAT, and has unit md-m
// or md-ft This unit must match the unit used to represent coordinates of the grid used for export
// The conductivity value is used in the computations of transmissibility when exporting COMPDAT, and has unit
// md-m or md-ft This unit must match the unit used to represent coordinates of the grid used for export
for ( auto& yValues : conductivityValues )
{
@ -374,6 +378,7 @@ std::vector<std::vector<double>>
}
}
}
}
return conductivityValues;
}