Roff: fix incorrect k direction for active data.

This commit is contained in:
Kristian Bendiksen 2022-12-19 18:19:35 +01:00
parent 9db4d03a5f
commit 492f2dc4f6

View File

@ -478,7 +478,7 @@ void RifRoffFileTools::convertToReservoirIndexOrder( int nx
{
for ( int i = 0; i < nx; i++ )
{
int inIdx = i * ny * nz + j * nz + k;
int inIdx = i * ny * nz + j * nz + ( nz - k - 1 );
activeOut[outIdx] = static_cast<int>( activeIn[inIdx] );
outIdx++;
}