mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-30 19:44:32 +00:00 
			
		
		
		
	Check that the reduced dim is an integer
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user