Skip to content

Commit

Permalink
Merge pull request ESMCI#1606 from ckhroulev/PIOc_InitDecomp_bc-off-b…
Browse files Browse the repository at this point in the history
…y-one-bugfix

Fix an off-by-one error in PIOc_InitDecomp_bc()
  • Loading branch information
jedwards4b authored Oct 29, 2019
2 parents b1b1fa7 + 648109a commit 2f1436a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clib/pioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ PIOc_InitDecomp_bc(int iosysid, int pio_type, int ndims, const int *gdimlen,
}
for (i = 0; i < maplen; i++)
{
compmap[i] = 0;
compmap[i] = 1;
for (n = ndims - 1; n >= 0; n--)
compmap[i] += (start[n] + loc[n]) * prod[n];

Expand Down

0 comments on commit 2f1436a

Please sign in to comment.