**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
- struct timeval now;
- if (gettimeofday (&now, NULL))
- return 0;
-
- return (now.tv_sec + static_cast<double>(now.tv_usec) / 1000000.);
+ struct timeval now;
+ if (gettimeofday (&now, NULL))
+ return 0;
+
+ return (now.tv_sec + static_cast<double>(now.tv_usec) / 1000000.);
- m_timeEnd = MPI::Wtime();
- m_timeElapsed = m_timeEnd - m_timeStart;
-
- return (m_timeElapsed);
+ m_timeEnd = MPI::Wtime();
+ m_timeElapsed = m_timeEnd - m_timeStart;
+
+ return (m_timeElapsed);
- if (m_comm.Get_rank() == 0)
- std::cout << msg << ": " << m_timeElapsed << " seconds" << std::endl;
+ if (m_comm.Get_rank() == 0)
+ std::cout << msg << ": " << m_timeElapsed << " seconds" << std::endl;
- m_timeEnd = MPI::Wtime();
- m_timeElapsed = m_timeEnd - m_timeStart;
- m_comm.Reduce (&m_timeElapsed, &m_timeMin, 1, MPI::DOUBLE, MPI::MIN, 0);
- m_comm.Reduce (&m_timeElapsed, &m_timeMax, 1, MPI::DOUBLE, MPI::MAX, 0);
-
- return (m_timeElapsed);
+ m_timeEnd = MPI::Wtime();
+ m_timeElapsed = m_timeEnd - m_timeStart;
+ m_comm.Reduce (&m_timeElapsed, &m_timeMin, 1, MPI::DOUBLE, MPI::MIN, 0);
+ m_comm.Reduce (&m_timeElapsed, &m_timeMax, 1, MPI::DOUBLE, MPI::MAX, 0);
+
+ return (m_timeElapsed);
- if (m_comm.Get_rank() == 0)
- std::cout << msg << " " << "Minimum=" << m_timeMin << ", Maximum=" << m_timeMax << " seconds" << std::endl;
+ if (m_comm.Get_rank() == 0)
+ std::cout << msg << " " << "Minimum=" << m_timeMin << ", Maximum=" << m_timeMax << " seconds" << std::endl;