diff --git a/Grid/lattice/PaddedCell.h b/Grid/lattice/PaddedCell.h index 500b97de..57d3ab15 100644 --- a/Grid/lattice/PaddedCell.h +++ b/Grid/lattice/PaddedCell.h @@ -86,8 +86,10 @@ public: // expand up one dim at a time for(int d=0;d 1 ) { + plocal[d] += 2*depth; + } + for(int d=0;d inline Lattice Extract(const Lattice &in) const { + Coordinate processors=unpadded_grid->_processors; + Lattice out(unpadded_grid); Coordinate local =unpadded_grid->LocalDimensions(); - Coordinate fll(dims,depth); // depends on the MPI spread + // depends on the MPI spread + Coordinate fll(dims,depth); Coordinate tll(dims,0); // depends on the MPI spread + for(int d=0;d inline Lattice Expand(int dim, const Lattice &in, const CshiftImplBase &cshift = CshiftImplDefault()) const { + Coordinate processors=unpadded_grid->_processors; GridBase *old_grid = in.Grid(); GridCartesian *new_grid = grids[dim];//These are new grids Lattice padded(new_grid); @@ -133,36 +142,48 @@ public: std::cout << " dim "<