From 7a4e0c6ffb7bb7b7eab36781e9aa10fcd12d72f9 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 16 Aug 1999 11:35:21 +0000 Subject: [PATCH] Doc update. git-svn-id: https://svn.dealii.org/trunk@1702 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/persistent_tria.h | 6 ++++++ deal.II/deal.II/include/grid/tria.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/deal.II/deal.II/include/grid/persistent_tria.h b/deal.II/deal.II/include/grid/persistent_tria.h index c8c35a7e4c..852405a9b1 100644 --- a/deal.II/deal.II/include/grid/persistent_tria.h +++ b/deal.II/deal.II/include/grid/persistent_tria.h @@ -121,6 +121,12 @@ class PersistentTriangulation : public Triangulation * data. For this, the coarse grid is * copied and the grid is stepwise * rebuilt using the saved flags. + * + * Note that this function will result in + * an error if the underlying triangulation + * is not empty, i.e. it will only succeed + * if this object is newly created or + * #clear()# was called on it before. */ void restore (); diff --git a/deal.II/deal.II/include/grid/tria.h b/deal.II/deal.II/include/grid/tria.h index 6a6fcfc136..6405191c32 100644 --- a/deal.II/deal.II/include/grid/tria.h +++ b/deal.II/deal.II/include/grid/tria.h @@ -1639,6 +1639,11 @@ class Triangulation /** * Reset this triangulation into a * virgin state by deleting all data. + * + * Note that this operation is only allowed + * if no subscriptions to this object exist + * any more, such as #DoFHandler# objects + * using it. */ void clear (); -- 2.39.5