From 7b41b92d998e2fc602ec607de28217cbbebfef38 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 5 Oct 2023 16:55:48 -0400 Subject: [PATCH] Only need to bad non-local dimensions --- Grid/lattice/PaddedCell.h | 83 ++++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 31 deletions(-) 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 "<