1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-23 18:22:02 +01:00

Catch edge case in SharedMemoryMPI::GetShmDims; Change default units to consistent MB in init args; Want last element not past last element in MemoryManagerCache.cc

This commit is contained in:
Christoph Lehner
2020-06-14 13:26:01 -04:00
parent b5e87e8d97
commit 3dccd7aa2c
3 changed files with 6 additions and 6 deletions

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;
}
}