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:
parent
dbe4d7850c
commit
06e6f8de00
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user