Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix debug output in interaction function - slidergrid - grid of elastic slider…
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit ed285da822b8be868f38c8cc1419a2d5fa783592
parent be3b8690a7ce4f86cc57cc4d3b31a8941b9a76fb
Author: Anders Damsgaard <[email protected]>
Date: Tue, 22 Mar 2016 13:26:43 -0700
fix debug output in interaction function
Diffstat:
M slidergrid/debug.h | 5 ++---
M slidergrid/slider.c | 4 +++-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/slidergrid/debug.h b/slidergrid/debug.h
t@@ -7,11 +7,10 @@
// if defined, verbose information to stdout will be shown before the slider
// integration
-//#define DEBUG_SLIDER_FORCE_TORQUE_AND_NEIGHBORS
-
+#define DEBUG_SLIDER_FORCE_TORQUE_AND_NEIGHBORS
// if defined, verbose information to stdout will be shown about the individua…
// components of the sum of forces
-//#define DEBUG_SLIDER_FORCE_COMPONENTS
+#define DEBUG_SLIDER_FORCE_COMPONENTS
#endif
diff --git a/slidergrid/slider.c b/slidergrid/slider.c
t@@ -2,6 +2,7 @@
#include "typedefs.h"
#include "slider.h"
#include "vector_math.h"
+#include "debug.h"
void print_slider_position(slider s)
{
t@@ -182,7 +183,8 @@ void slider_interaction(slider* s1, const slider s2, const…
s1->force = add_float3(s1->force, f_n);
#ifdef DEBUG_SLIDER_FORCE_COMPONENTS
- printf("slider_interaction: f_n = %f %f %f, f_n_elastic = %f %f %f, f_n_vi…
+ printf("slider_interaction: f_n = %f %f %f, "
+ "f_n_elastic = %f %f %f, f_n_viscous = %f %f %f\n",
f_n.x,
f_n.y,
f_n.z,
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.