From d4de26f6efb373b2cd0f8ebe8f2954ccf9af3228 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 19 Aug 2021 17:28:48 -0400 Subject: [PATCH] fix whitespace issues --- src/KSPACE/msm.cpp | 2 +- src/comm.cpp | 4 ++-- src/comm.h | 2 +- src/domain.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/KSPACE/msm.cpp b/src/KSPACE/msm.cpp index 0f9bf07139..7bf16533bb 100644 --- a/src/KSPACE/msm.cpp +++ b/src/KSPACE/msm.cpp @@ -1197,7 +1197,7 @@ void MSM::set_grid_local() // partition global grid across procs // n xyz lo/hi in[] = lower/upper bounds of global grid this proc owns // indices range from 0 to N-1 inclusive in each dim - + comm->partition_grid(nx_msm[n],ny_msm[n],nz_msm[n],0.0, nxlo_in[n],nxhi_in[n],nylo_in[n],nyhi_in[n], nzlo_in[n],nzhi_in[n]); diff --git a/src/comm.cpp b/src/comm.cpp index bf137ce969..17175f9517 100644 --- a/src/comm.cpp +++ b/src/comm.cpp @@ -840,7 +840,7 @@ int Comm::binary(double value, int n, double *vec) indices into the global grid range from 0 to N-1 in each dim zfactor = 0.0 if the grid exactly covers the simulation box zfactor > 1.0 if the grid extends beyond the +z boundary by this factor - used by 2d slab-mode PPPM + used by 2d slab-mode PPPM this effectively maps proc sub-grids to a smaller subset of the grid nxyz lo/hi = inclusive lo/hi bounds of global grid sub-brick I own if proc owns no grid cells in a dim, then nlo > nhi @@ -849,7 +849,7 @@ int Comm::binary(double value, int n, double *vec) ------------------------------------------------------------------------- */ void Comm::partition_grid(int nx, int ny, int nz, double zfactor, - int &nxlo, int &nxhi, int &nylo, int &nyhi, + int &nxlo, int &nxhi, int &nylo, int &nyhi, int &nzlo, int &nzhi) { double xfraclo,xfrachi,yfraclo,yfrachi,zfraclo,zfrachi; diff --git a/src/comm.h b/src/comm.h index 7ad9e8756c..2ab999bab3 100644 --- a/src/comm.h +++ b/src/comm.h @@ -107,7 +107,7 @@ class Comm : protected Pointers { // partition a global regular grid by proc sub-domains - void partition_grid(int, int, int, double, + void partition_grid(int, int, int, double, int &, int &, int &, int &, int &, int &); // memory usage diff --git a/src/domain.h b/src/domain.h index f05afc50e6..711bab0fb2 100644 --- a/src/domain.h +++ b/src/domain.h @@ -56,7 +56,7 @@ class Domain : protected Pointers { // orthogonal box global bounds - double boxlo[3], boxhi[3]; + double boxlo[3], boxhi[3]; // triclinic box // boxlo/hi = same as if untilted