From c917ff58e723a4b9a5198413ec4c7f4ed7c5b9c1 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Mon, 10 Feb 2014 08:44:43 -0800 Subject: [PATCH] small fix to rvic/c_convolve.c syntax --- rvic/c_convolve.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rvic/c_convolve.c b/rvic/c_convolve.c index d79c9d2..825e4b0 100644 --- a/rvic/c_convolve.c +++ b/rvic/c_convolve.c @@ -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++) { @@ -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; } } }