Introduction
Introduction Statistics Contact Development Disclaimer Help
tavoid unused variable warning - slidergrid - grid of elastic sliders on a fric…
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit 98510995b3b02e74f91395782889154b236d517a
parent 75d805810911e239896f6865ab9af0dc10b2f2ed
Author: Anders Damsgaard <[email protected]>
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(-)
---
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
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,
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.