Commit c802e1ae authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed Grid.getSpaceStepsProducts

parent 0925367f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ getSpaceStepsProducts() const
   Assert( yPow >= -2 && yPow <= 2,
              std::cerr << " yPow = " << yPow );

   return this->spaceStepsProducts[ yPow + 2 ][ xPow + 2 ];
   return this->spaceStepsProducts[ xPow + 2 ][ yPow + 2 ];
}

template< typename Real,
+1 −1
Original line number Diff line number Diff line
@@ -348,7 +348,7 @@ getSpaceStepsProducts() const
   Assert( zPow >= -2 && zPow <= 2,
              std::cerr << " zPow = " << zPow );

   return this->spaceStepsProducts[ zPow + 2 ][ yPow + 2 ][ xPow + 2 ];
   return this->spaceStepsProducts[ xPow + 2 ][ yPow + 2 ][ zPow + 2 ];
}

template< typename Real,