From b0c3b71487ac3642f36f94011432f64c7df71bb1 Mon Sep 17 00:00:00 2001
From: podlesny <podlesny@mi.fu-berlin.de>
Date: Mon, 15 Jul 2019 15:45:01 +0200
Subject: [PATCH] .

---
 src/data-structures/program_state.hh | 4 ++--
 src/utils/debugutils.hh              | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/data-structures/program_state.hh b/src/data-structures/program_state.hh
index 6fbc95c1..382c82b1 100644
--- a/src/data-structures/program_state.hh
+++ b/src/data-structures/program_state.hh
@@ -315,7 +315,7 @@ template <class VectorTEMPLATE, class ScalarVectorTEMPLATE> class ProgramState {
     solveLinearProblem(dirichletNodes, contactNetwork.matrices().elasticity, ell0, u,
                        parset.sub("u0.solver"));
 
-    //print(u, "initial u:");
+    print(u, "initial u:");
 
     // Initial acceleration: Computed in agreement with Ma = ell0 - Au
     // (without Dirichlet constraints), again assuming dPhi(v = 0) = 0
@@ -348,7 +348,7 @@ template <class VectorTEMPLATE, class ScalarVectorTEMPLATE> class ProgramState {
     solveLinearProblem(noNodes, contactNetwork.matrices().mass, accelerationRHS, a,
                        parset.sub("a0.solver"));
 
-    //print(a, "initial a:");
+    print(a, "initial a:");
   }
 
 private:
diff --git a/src/utils/debugutils.hh b/src/utils/debugutils.hh
index 4cd6024a..c14b16f1 100644
--- a/src/utils/debugutils.hh
+++ b/src/utils/debugutils.hh
@@ -118,7 +118,8 @@
    void print(const std::vector<T>& x, std::string message){
       std::cout << message << std::endl;
       for (size_t i=0; i<x.size(); i++) {
-          std::cout << x[i] << std::endl;
+          //std::cout << x[i] << std::endl;
+          print(x[i], "");
       }
       std::cout << std::endl << std::endl;
    }
-- 
GitLab