mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-12 16:55:37 +00:00
Spread out improvement
This commit is contained in:
parent
c0a0b8ca62
commit
3e94838204
@ -45,8 +45,9 @@ public:
|
|||||||
dims=_grid->Nd();
|
dims=_grid->Nd();
|
||||||
AllocateGrids();
|
AllocateGrids();
|
||||||
Coordinate local =unpadded_grid->LocalDimensions();
|
Coordinate local =unpadded_grid->LocalDimensions();
|
||||||
|
Coordinate procs =unpadded_grid->ProcessorGrid();
|
||||||
for(int d=0;d<dims;d++){
|
for(int d=0;d<dims;d++){
|
||||||
assert(local[d]>=depth);
|
if ( procs[d] > 1 ) assert(local[d]>=depth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void DeleteGrids(void)
|
void DeleteGrids(void)
|
||||||
@ -111,7 +112,7 @@ public:
|
|||||||
if(dim==0) conformable(old_grid,unpadded_grid);
|
if(dim==0) conformable(old_grid,unpadded_grid);
|
||||||
else conformable(old_grid,grids[dim-1]);
|
else conformable(old_grid,grids[dim-1]);
|
||||||
|
|
||||||
std::cout << " dim "<<dim<<" local "<<local << " padding to "<<plocal<<std::endl;
|
// std::cout << " dim "<<dim<<" local "<<local << " padding to "<<plocal<<std::endl;
|
||||||
// Middle bit
|
// Middle bit
|
||||||
for(int x=0;x<local[dim];x++){
|
for(int x=0;x<local[dim];x++){
|
||||||
InsertSliceLocal(in,padded,x,depth+x,dim);
|
InsertSliceLocal(in,padded,x,depth+x,dim);
|
||||||
|
Loading…
Reference in New Issue
Block a user