From: Timo Heister Date: Sun, 23 Jan 2011 10:27:49 +0000 (+0000) Subject: delete file not needed. X-Git-Tag: v8.0.0~4447 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3b010e5a228f2c189c7f144d2273d05d0ebeac;p=dealii.git delete file not needed. git-svn-id: https://svn.dealii.org/trunk@23249 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/timeblock.h b/deal.II/examples/step-32/timeblock.h deleted file mode 100644 index 0aaa5ffab3..0000000000 --- a/deal.II/examples/step-32/timeblock.h +++ /dev/null @@ -1,64 +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_running(true), - 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() - { - close(); - } - - void close() - { - if (!m_running) - return; - m_running = false; - - 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_running; - dealii::Timer m_timer; - STREAM & stream; -}; - -#endif