1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Edge case in GetShmDim check

This commit is contained in:
Christoph Lehner 2020-06-19 12:01:23 -04:00
parent 81a8209749
commit 05bbc49a99

View File

@ -180,7 +180,7 @@ void GlobalSharedMemory::GetShmDims(const Coordinate &WorldDims,Coordinate &ShmD
&& divides(prime,WorldShmSize/AutoShmSize) ) {
AutoShmSize*=prime;
ShmDims[dim]*=prime;
last_dim = (dim + ndimension - 1) % ndimension;
last_dim = dim;
break;
}
}