Skip to content

Commit

Permalink
small fix to rvic/c_convolve.c syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hamman committed Feb 10, 2014
1 parent 995a4b0 commit c917ff5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions rvic/c_convolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ void c_convolve(const int nsources, /*scalar - number of sources*/
//2d-->1d indexing goes like this: ind = y*x_size + x
xyind = y*x_size + x;

runin = &aggrunin[xyind];

// if (*runin > 10000.0) {
// printf("runin is big: %f\n", *runin);
// printf("xyind: %i\n", xyind);
// printf("y: %i\n", y);
// printf("x: %i\n", x);
runin = aggrunin[xyind];

/* Do the convolution */
for (i = 0; i < subset_length; i++) {
Expand All @@ -46,7 +40,7 @@ void c_convolve(const int nsources, /*scalar - number of sources*/
rind = j * noutlets + outlet;
uhind = i * nsources + s;

ring[rind] += unit_hydrograph[uhind] * *runin;
ring[rind] += unit_hydrograph[uhind] * runin;
}
}
}

0 comments on commit c917ff5

Please sign in to comment.