diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-03-04 16:25:23 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-03-04 16:25:23 +0000 |
commit | 264c9a81c81c68df922d46fe6a170b7741cd72ef (patch) | |
tree | 1e80690c7d077efc4645b3e6ac89c2f51ecc5d0d /src/SetupPGV.c | |
parent | 46f2e553071b29921cd4a76411d9df248672c49f (diff) |
Cosmetic changes
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@167 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupPGV.c')
-rw-r--r-- | src/SetupPGV.c | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/src/SetupPGV.c b/src/SetupPGV.c index b0423c9..33114fb 100644 --- a/src/SetupPGV.c +++ b/src/SetupPGV.c @@ -345,7 +345,11 @@ int pugh_GenerateTopology(int dim, int total_procs, int *nprocs) @endhistory @@*/ -int pugh_GenerateNeighbours(int dim, int total_procs, int *nprocs, int **neighbours, int periodic) +int pugh_GenerateNeighbours(int dim, + int total_procs, + int *nprocs, + int **neighbours, + int periodic) { int retval; int i; @@ -794,11 +798,25 @@ int pugh_SetupPGExtrasSizes(int dim, /* Setup the bounding box stuff */ - pugh_SetupBoundingBox(dim, periodic, stagger, sh, nghosts, total_procs, nprocs, this); + pugh_SetupBoundingBox(dim, + periodic, + stagger, + sh, + nghosts, + total_procs, + nprocs, + this); /* Set the remote sizes */ - pugh_SetupRemoteSizes(dim, periodic, stagger, sh, nghosts, total_procs, nprocs, this); + pugh_SetupRemoteSizes(dim, + periodic, + stagger, + sh, + nghosts, + total_procs, + nprocs, + this); /* Set the local sizes */ @@ -853,11 +871,11 @@ int pugh_SetupPGExtrasOwnership(int dim, */ for (dir = 0 ; dir < dim; dir++) { - this->ownership[PUGH_VERTEXCTR][0][dir] = (this->lb[this_proc][dir] == 0 ? - 0 : this->nghostzones[dir]); - this->ownership[PUGH_VERTEXCTR][1][dir]=(this->ub[this_proc][dir] == this->nsize[dir]-1 ? - this->lnsize[dir] : this->lnsize[dir] - - this->nghostzones[dir]); + this->ownership[PUGH_VERTEXCTR][0][dir] = + (this->lb[this_proc][dir] == 0 ? 0 : this->nghostzones[dir]); + this->ownership[PUGH_VERTEXCTR][1][dir] = + (this->ub[this_proc][dir] == this->nsize[dir]-1 ? + this->lnsize[dir] : this->lnsize[dir] - this->nghostzones[dir]); } /* correct for periodic identification : Tue Jun 17 08:40:15 CDT 1997 */ @@ -865,8 +883,10 @@ int pugh_SetupPGExtrasOwnership(int dim, { for (dir = 0; dir < dim; dir++) { - this->ownership[PUGH_VERTEXCTR][0][dir] = this->nghostzones[dir]; - this->ownership[PUGH_VERTEXCTR][1][dir] = this->lnsize[dir] - this->nghostzones[dir]; + this->ownership[PUGH_VERTEXCTR][0][dir] = + this->nghostzones[dir]; + this->ownership[PUGH_VERTEXCTR][1][dir] = + this->lnsize[dir] - this->nghostzones[dir]; } } |