Skip to content
Snippets Groups Projects
Commit c07aeba3 authored by Lisa Julia Nebel's avatar Lisa Julia Nebel
Browse files

Print total time needed for the whole program to run (in main)

parent 7984e453
No related branches found
No related tags found
1 merge request!32Minor improvements
......@@ -14,6 +14,7 @@
#include <dune/common/bitsetvector.hh>
#include <dune/common/parametertree.hh>
#include <dune/common/parametertreeparser.hh>
#include <dune/common/timer.hh>
#include <dune/common/version.hh>
#include <dune/grid/uggrid.hh>
......@@ -115,6 +116,7 @@ struct NeumannFunction
int main (int argc, char *argv[]) try
{
Dune::Timer overallTimer;
// initialize MPI, finalize is done automatically on exit
Dune::MPIHelper& mpiHelper = MPIHelper::instance(argc, argv);
......@@ -528,6 +530,8 @@ int main (int argc, char *argv[]) try
x = solver.getSol();
std::cout << "Overall calculation took " << overallTimer.elapsed() << " sec." << std::endl;
/////////////////////////////////
// Output result
/////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment