tavoid unused variable warning - slidergrid - grid of elastic sliders on a frictional surface
(HTM) git clone git://src.adamsgaard.dk/slidergrid
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 98510995b3b02e74f91395782889154b236d517a
(DIR) parent 75d805810911e239896f6865ab9af0dc10b2f2ed
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 22 Mar 2016 11:30:17 -0700
avoid unused variable warning
Diffstat:
M slidergrid/debug.h | 2 +-
M slidergrid/main.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/slidergrid/debug.h b/slidergrid/debug.h
t@@ -3,7 +3,7 @@
// if defined, verbose information to stdout will be shown during the
// slider-bond initialization function
-//#define DEBUG_FIND_AND_BOND_TO_NEIGHBORS
+#define DEBUG_FIND_AND_BOND_TO_NEIGHBORS
// if defined, verbose information to stdout will be shown before the slider
// integration
(DIR) diff --git a/slidergrid/main.c b/slidergrid/main.c
t@@ -41,7 +41,7 @@ void print_status(simulation sim)
int main(int argc, char** argv)
{
- int i, j;
+ int i;
// default values of command-line flags
int verbose = 0;
t@@ -138,6 +138,7 @@ int main(int argc, char** argv)
sim.iteration);
#ifdef DEBUG_SLIDER_FORCE_TORQUE_AND_NEIGHBORS
+ int j;
printf("Slider %d: F = %f %f %f, T = %f %f %f, neighbors = ",
i,
sim.sliders[i].force.x,