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

Check that the reduced dim is an integer

This commit is contained in:
Guido Cossu 2017-08-08 10:22:12 +01:00
parent dbe4d7850c
commit 06e6f8de00

View File

@ -176,7 +176,8 @@ public:
// Use a reduced simd grid
_simd_layout[d] = simd_layout[d];
_rdimensions[d]= _ldimensions[d]/_simd_layout[d];
_rdimensions[d]= _ldimensions[d]/_simd_layout[d]; // this is not checking if this is integer
assert(_rdimensions[d]*_simd_layout[d] == _ldimensions[d]);
assert(_rdimensions[d]>0);
// all elements of a simd vector must have same checkerboard.