Skip to content
Snippets Groups Projects
Commit 92bef1fc authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Send timings to stderr

parent 2207d17c
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ int main(int argc, char *argv[]) { ...@@ -200,7 +200,7 @@ int main(int argc, char *argv[]) {
massMatrix *= density; massMatrix *= density;
if (parset.get<bool>("enable_timer")) 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; << std::endl;
// Compute gravitational body force // Compute gravitational body force
...@@ -224,7 +224,7 @@ int main(int argc, char *argv[]) { ...@@ -224,7 +224,7 @@ int main(int argc, char *argv[]) {
OperatorAssembler<P1Basis, P1Basis>(p1Basis, p1Basis) OperatorAssembler<P1Basis, P1Basis>(p1Basis, p1Basis)
.assemble(localStiffness, stiffnessMatrix); .assemble(localStiffness, stiffnessMatrix);
if (parset.get<bool>("enable_timer")) 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; << std::endl;
} }
EnergyNorm<MatrixType, VectorType> energyNorm(stiffnessMatrix); EnergyNorm<MatrixType, VectorType> energyNorm(stiffnessMatrix);
...@@ -487,7 +487,7 @@ int main(int argc, char *argv[]) { ...@@ -487,7 +487,7 @@ int main(int argc, char *argv[]) {
} }
} }
if (parset.get<bool>("enable_timer")) 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; << timer.elapsed() << "s" << std::endl;
octave_writer.close(); octave_writer.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment