tfix debug output in interaction function - 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 ed285da822b8be868f38c8cc1419a2d5fa783592
 (DIR) parent be3b8690a7ce4f86cc57cc4d3b31a8941b9a76fb
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       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(-)
       ---
 (DIR) 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 individual 
        // components of the sum of forces
       -//#define DEBUG_SLIDER_FORCE_COMPONENTS
       +#define DEBUG_SLIDER_FORCE_COMPONENTS
        
        #endif
 (DIR) 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 int idx_neighbor)
            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_viscous = %f %f %f\n",
       +    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,