From f72587ea7a9b1bde53f64dfb1f4657280a357e1b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 4 Jul 2015 07:23:24 -0400 Subject: [PATCH] add CellID::str() --- include/deal.II/grid/cell_id.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index 7a971bc5e9..8748802e16 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -20,6 +20,7 @@ #include #include +#include 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 */ -- 2.39.5