From 92bef1fcaba17fa8d0e6c86a1f6eaa3f16b17ad2 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 11 Sep 2012 20:02:33 +0200
Subject: [PATCH] Send timings to stderr

---
 src/one-body-sample.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 05f1e3fb..478fb633 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -200,7 +200,7 @@ int main(int argc, char *argv[]) {
 
       massMatrix *= density;
       if (parset.get<bool>("enable_timer"))
-        std::cout << "Assembled mass matrix in " << timer.elapsed() << "s"
+        std::cerr << "Assembled mass matrix in " << timer.elapsed() << "s"
                   << std::endl;
 
       // Compute gravitational body force
@@ -224,7 +224,7 @@ int main(int argc, char *argv[]) {
       OperatorAssembler<P1Basis, P1Basis>(p1Basis, p1Basis)
           .assemble(localStiffness, stiffnessMatrix);
       if (parset.get<bool>("enable_timer"))
-        std::cout << "Assembled stiffness matrix in " << timer.elapsed() << "s"
+        std::cerr << "Assembled stiffness matrix in " << timer.elapsed() << "s"
                   << std::endl;
     }
     EnergyNorm<MatrixType, VectorType> energyNorm(stiffnessMatrix);
@@ -487,7 +487,7 @@ int main(int argc, char *argv[]) {
       }
     }
     if (parset.get<bool>("enable_timer"))
-      std::cout << std::endl << "Making " << timesteps << " time steps took "
+      std::cerr << std::endl << "Making " << timesteps << " time steps took "
                 << timer.elapsed() << "s" << std::endl;
 
     octave_writer.close();
-- 
GitLab