mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-31 12:04:33 +00:00 
			
		
		
		
	Allow shrinking machine in orthog direction for extract slice local
This commit is contained in:
		| @@ -464,8 +464,10 @@ void InsertSliceLocal(const Lattice<vobj> &lowDim, Lattice<vobj> & higherDim,int | |||||||
|   assert(orthog>=0); |   assert(orthog>=0); | ||||||
|  |  | ||||||
|   for(int d=0;d<nh;d++){ |   for(int d=0;d<nh;d++){ | ||||||
|     assert(lg->_processors[d]  == hg->_processors[d]); |     if ( d!=orthog ) { | ||||||
|     assert(lg->_ldimensions[d] == hg->_ldimensions[d]); |       assert(lg->_processors[d]  == hg->_processors[d]); | ||||||
|  |       assert(lg->_ldimensions[d] == hg->_ldimensions[d]); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // the above should guarantee that the operations are local |   // the above should guarantee that the operations are local | ||||||
| @@ -499,8 +501,10 @@ void ExtractSliceLocal(Lattice<vobj> &lowDim, Lattice<vobj> & higherDim,int slic | |||||||
|   assert(orthog>=0); |   assert(orthog>=0); | ||||||
|  |  | ||||||
|   for(int d=0;d<nh;d++){ |   for(int d=0;d<nh;d++){ | ||||||
|     assert(lg->_processors[d]  == hg->_processors[d]); |     if ( d!=orthog ) { | ||||||
|     assert(lg->_ldimensions[d] == hg->_ldimensions[d]); |       assert(lg->_processors[d]  == hg->_processors[d]); | ||||||
|  |       assert(lg->_ldimensions[d] == hg->_ldimensions[d]); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // the above should guarantee that the operations are local |   // the above should guarantee that the operations are local | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user