Skip to content
Snippets Groups Projects
Commit 7994c90c authored by Erik Strand's avatar Erik Strand
Browse files

Fix off by one error

parent 50bf605b
Branches
No related tags found
No related merge requests found
......@@ -31,8 +31,8 @@ void main(int argc, char** argv) {
gettimeofday(&start, NULL);
}
istart = NPTS * rank;
iend = NPTS * (rank + 1);
istart = NPTS * rank + 1;
iend = NPTS * (rank + 1) + 1;
sum = 0.0;
for (i = istart; i <= iend; ++i) {
sum += 0.5 / ((i - 0.75) * (i - 0.25));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment