]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add CellID::str()
authorTimo Heister <timo.heister@gmail.com>
Sat, 4 Jul 2015 11:23:24 +0000 (07:23 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 4 Jul 2015 11:23:24 +0000 (07:23 -0400)
include/deal.II/grid/cell_id.h

index 7a971bc5e9aaea3bcbc8a33ff840b3c6330fd147..8748802e16376ecb3fe016f651fb19b34707fa64 100644 (file)
@@ -20,6 +20,7 @@
 #include <deal.II/base/exceptions.h>
 
 #include <vector>
+#include <sstream>
 
 
 DEAL_II_NAMESPACE_OPEN
@@ -68,6 +69,16 @@ public:
     : coarse_cell_id(-1)
   {}
 
+  /**
+   *
+   */
+  std::string str() const
+  {
+    std::ostringstream ss;
+    ss << *this;
+    return ss.str();
+  }
+
   /**
    * compare two CellIds
    */

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.