debug of fix ave/grid

This commit is contained in:
Steve Plimpton
2022-08-23 09:58:58 -06:00
parent 37e9bf54ab
commit b6583eb681
4 changed files with 193 additions and 23 deletions

View File

@ -366,7 +366,16 @@ void Grid2d::get_box(int dim, double &lo, double &delta)
delta = prd[dim] / ngrid[dim];
}
/* ---------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
return sizes of two buffers needed for communication
either on regular grid or procs or irregular tiling
nbuf1 = largest pack or unpack in any Send or Recv or Copy
nbuf2 = larget of sum of all packs or unpacks in Send or Recv
for regular comm, nbuf1 = nbuf2
for irregular comm, nbuf2 >= nbuf2
nbuf1,nbuf2 are just count of grid points
caller converts them to message size for grid data it stores
------------------------------------------------------------------------- */
void Grid2d::setup(int &nbuf1, int &nbuf2)
{