diff options
author | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2001-06-12 22:14:24 +0000 |
---|---|---|
committer | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2001-06-12 22:14:24 +0000 |
commit | dac533161647369d074064828e5589f591a57594 (patch) | |
tree | 444c332047cc3f61b66d39d6467a3ca37c455bce /src/Comm.c | |
parent | 2d75ab0c672dc5d1268fa630c1af6cfa54902016 (diff) |
The pGExtras->hyper_volume[] array is counted by number of elements now,
not by number of bytes anymore.
This fixes PR CactusPUGH-PUGH/689.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@333 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/Comm.c')
-rw-r--r-- | src/Comm.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -917,13 +917,15 @@ static int PUGH_SyncSingleProc(pGH *pughGH, } /* get the linear offsets */ - offset_from = istart_from[0] * GA->varsize; - offset_to = istart_to[0] * GA->varsize; + offset_from = istart_from[0]; + offset_to = istart_to[0]; for (i = 1; i < GA->extras->dim; i++) { offset_from += iterator_from[i] * GA->extras->hyper_volume[i]; - offset_to += iterator_to[i] * GA->extras->hyper_volume[i]; + offset_to += iterator_to[i] * GA->extras->hyper_volume[i]; } + offset_from *= GA->varsize; + offset_to *= GA->varsize; /* copy the data for all the variables in the comm structure */ for (i = comm->first_var; i < comm->first_var + comm->n_vars; i++) |