#7493 Sample at center of cell to avoid infs.

This commit is contained in:
Kristian Bendiksen 2021-04-07 12:52:16 +02:00
parent fc7ac06b42
commit f3a2062fec

View File

@ -203,13 +203,13 @@ std::vector<QString> RimFractureGroupStatistics::computeStatistics()
for ( int y = 0; y < numSamplesY; y++ )
{
double posY = minY + y * sampleDistanceY;
double posY = minY + y * sampleDistanceY + sampleDistanceY * 0.5;
gridYs[y] = referenceDepth - posY;
}
for ( int x = 0; x < numSamplesX; x++ )
{
double posX = minX + x * sampleDistanceX;
double posX = minX + x * sampleDistanceX + sampleDistanceX * 0.5;
gridXs[x] = posX;
}
@ -440,8 +440,8 @@ void RimFractureGroupStatistics::sampleAllGrids( const std::vector<cvf::cref<Rig
{
for ( int x = 0; x < numSamplesX; x++ )
{
double posX = minX + x * sampleDistanceX;
double posY = minY + y * sampleDistanceY;
double posX = minX + x * sampleDistanceX + sampleDistanceX * 0.5;
double posY = minY + y * sampleDistanceY + sampleDistanceY * 0.5;
for ( auto fractureGrid : fractureGrids )
{