From 860938d7d70d5b48e8a9725f1a29c73b1da05b0d Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 16 Nov 2010 02:45:17 +0000 Subject: [PATCH] Remove file now no longer needed. git-svn-id: https://svn.dealii.org/trunk@22748 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-40/timeblock.h | 54 ---------------------------- 1 file changed, 54 deletions(-) delete mode 100644 deal.II/examples/step-40/timeblock.h diff --git a/deal.II/examples/step-40/timeblock.h b/deal.II/examples/step-40/timeblock.h deleted file mode 100644 index d86eff8ae0..0000000000 --- a/deal.II/examples/step-40/timeblock.h +++ /dev/null @@ -1,54 +0,0 @@ -/** - * copyright: - * Research Group on Numerical Methods for PDEs - * University of Göttingen - * - * lube@math.uni-goettingen.de - */ - -#ifndef TIMEBLOCK_H -#define TIMEBLOCK_H - -template -class TimeBlock -{ - public: - TimeBlock(STREAM & stream_, const char* blockname, bool singleline=true) - : m_blockname(blockname), - m_singleline(singleline), - m_timer(MPI_COMM_WORLD, true), - stream(stream_) - { - MPI_Barrier(MPI_COMM_WORLD); - stream << blockname << " ... "; - if (singleline) - stream << std::flush; - else - stream << std::endl; - m_timer.start(); - } - - ~TimeBlock() - { - m_timer.stop(); - - if (!m_singleline) - stream << m_blockname << " took "; - - stream << std::fixed << std::setprecision(4); - - m_timer.print_data(stream); - - MPI_Barrier(MPI_COMM_WORLD); - } - - - private: - const char* m_blockname; - bool m_singleline; - bool m_issection; - dealii::Timer m_timer; - STREAM & stream; -}; - -#endif -- 2.39.5