From: bangerth Date: Tue, 16 Nov 2010 02:45:17 +0000 (+0000) Subject: Remove file now no longer needed. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=860938d7d70d5b48e8a9725f1a29c73b1da05b0d;p=dealii-svn.git Remove file now no longer needed. git-svn-id: https://svn.dealii.org/trunk@22748 0785d39b-7218-0410-832d-ea1e28bc413d --- 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