From 0d96b83352d1da0153f39d12921ff9c2dae5997c Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Wed, 16 Mar 2016 14:00:01 +0000
Subject: [PATCH] Start the clock before MPI

---
 examples/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/main.c b/examples/main.c
index f8e9187528..dd112d28c6 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -102,6 +102,9 @@ int main(int argc, char *argv[]) {
 /* Choke on FP-exceptions. */
 // feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
 
+  /* Initialize CPU frequency, this also starts time. */
+  clocks_set_cpufreq(cpufreq);
+
 #ifdef WITH_MPI
   /* Start by initializing MPI. */
   int res, prov;
@@ -132,9 +135,6 @@ int main(int argc, char *argv[]) {
          &initial_partition.grid[1], &initial_partition.grid[0]);
 #endif
 
-  /* Initialize CPU frequency, this also starts time. */
-  clocks_set_cpufreq(cpufreq);
-
   /* Greeting message */
   if (myrank == 0) greetings();
 
-- 
GitLab