]> https://gitweb.dealii.org/ - dealii.git/commitdiff
delete file not needed.
authorTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2011 10:27:49 +0000 (10:27 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2011 10:27:49 +0000 (10:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@23249 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/timeblock.h [deleted file]

diff --git a/deal.II/examples/step-32/timeblock.h b/deal.II/examples/step-32/timeblock.h
deleted file mode 100644 (file)
index 0aaa5ff..0000000
+++ /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<typename STREAM>
-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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.