Skip to content

Commit

Permalink
Fix bug with end calc coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
zer011b committed Mar 26, 2017
1 parent 0881291 commit f6e7fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Grid/ParallelGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ ParallelGrid::getComputationEnd (ParallelGridCoordinate diffPosEnd) const /**< l

#if defined (PARALLEL_BUFFER_DIMENSION_1D_X) || defined (PARALLEL_BUFFER_DIMENSION_2D_XY) || \
defined (PARALLEL_BUFFER_DIMENSION_2D_XZ) || defined (PARALLEL_BUFFER_DIMENSION_3D_XYZ)
if (parallelGridCore->getHasL ())
if (parallelGridCore->getHasR ())
{
diffX = shareStep + 1;
}
Expand All @@ -2419,7 +2419,7 @@ ParallelGrid::getComputationEnd (ParallelGridCoordinate diffPosEnd) const /**< l

#if defined (PARALLEL_BUFFER_DIMENSION_1D_Y) || defined (PARALLEL_BUFFER_DIMENSION_2D_XY) || \
defined (PARALLEL_BUFFER_DIMENSION_2D_YZ) || defined (PARALLEL_BUFFER_DIMENSION_3D_XYZ)
if (parallelGridCore->getHasD ())
if (parallelGridCore->getHasU ())
{
diffY = shareStep + 1;
}
Expand All @@ -2428,7 +2428,7 @@ ParallelGrid::getComputationEnd (ParallelGridCoordinate diffPosEnd) const /**< l

#if defined (PARALLEL_BUFFER_DIMENSION_1D_Z) || defined (PARALLEL_BUFFER_DIMENSION_2D_YZ) || \
defined (PARALLEL_BUFFER_DIMENSION_2D_XZ) || defined (PARALLEL_BUFFER_DIMENSION_3D_XYZ)
if (parallelGridCore->getHasB ())
if (parallelGridCore->getHasF ())
{
diffZ = shareStep + 1;
}
Expand Down

0 comments on commit f6e7fb3

Please sign in to comment.