Skip to content

Commit

Permalink
use nstack only when walkers output needed (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Feb 7, 2020
1 parent 9b3f3b5 commit e2d6fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.sim/simlib/hydro.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void main_loop(void)
/* Changes made by Soeren 8. Mar 2011 to replace the site walker output implementation */
/* Save all walkers located within the computational region and with valid
z coordinates */
if ((i == miter || i == iter1)) {
if (outwalk != NULL && (i == miter || i == iter1)) {
nstack = 0;

for (lw = 0; lw < nwalk; lw++) {
Expand Down

0 comments on commit e2d6fdd

Please sign in to comment.