mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7493 Fracture definition: Check if unit system conversion is necessary.
This commit is contained in:
parent
49042f4a34
commit
fc7ac06b42
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user