mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7493 Correct sampling direction (was flipped).
This commit is contained in:
parent
25d7c6d30d
commit
49042f4a34
@ -85,7 +85,9 @@ void RifFractureGroupStatisticsExporter::appendPropertiesToStream( QTextStream&
|
||||
|
||||
CAF_ASSERT( statistics[s]->ny() == gridYs.size() );
|
||||
|
||||
for ( size_t i = 0; i < gridYs.size(); i++ )
|
||||
// Need to write these in reverse because the depth tag is ignored in
|
||||
// in the reader (depths from <grid><ys> are used).
|
||||
for ( int i = static_cast<int>( gridYs.size() ) - 1; i >= 0; i-- )
|
||||
{
|
||||
stream << "<depth>" << gridYs[i] << "</depth>" << endl;
|
||||
stream << "<data>[";
|
||||
|
@ -204,7 +204,7 @@ std::vector<QString> RimFractureGroupStatistics::computeStatistics()
|
||||
for ( int y = 0; y < numSamplesY; y++ )
|
||||
{
|
||||
double posY = minY + y * sampleDistanceY;
|
||||
gridYs[y] = referenceDepth + posY;
|
||||
gridYs[y] = referenceDepth - posY;
|
||||
}
|
||||
|
||||
for ( int x = 0; x < numSamplesX; x++ )
|
||||
|
Loading…
Reference in New Issue
Block a user