]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add subscriptor information to subscribe()
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 9 May 2005 12:22:34 +0000 (12:22 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 9 May 2005 12:22:34 +0000 (12:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@10656 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc
deal.II/deal.II/source/numerics/time_dependent.cc

index 0bb1ce1c519a9ca9732327455a1571d381d13e8a..f1f40e982fb7172ea43d025fb015a43de3bee95b 100644 (file)
@@ -54,7 +54,7 @@ Triangulation<dim>::Triangulation (const MeshSmoothing smooth_grid) :
   for (unsigned int i=0;i<255;++i)
     {
       boundary[i] = straight_boundary;
-      boundary[i]->subscribe();
+      boundary[i]->subscribe(typeid(*this).name());
     }
 }
 
@@ -79,7 +79,7 @@ Triangulation<dim>::~Triangulation ()
   levels.clear ();
 
   for (unsigned int i=0;i<255;++i)
-    boundary[i]->unsubscribe ();
+    boundary[i]->unsubscribe(typeid(*this).name());
 }
 
 
@@ -100,9 +100,9 @@ void Triangulation<dim>::clear ()
   
   for (unsigned int i=0; i<255; ++i)
     {
-      boundary[i]->unsubscribe ();
+      boundary[i]->unsubscribe(typeid(*this).name());
       boundary[i] = straight_boundary;
-      boundary[i]->subscribe ();
+      boundary[i]->subscribe(typeid(*this).name());
     };
 
   number_cache = TriaNumberCache<dim>();
@@ -116,9 +116,9 @@ Triangulation<dim>::set_boundary (const unsigned int number,
 {
   Assert(number<255, ExcIndexRange(number,0,255));
   
-  boundary[number]->unsubscribe ();
+  boundary[number]->unsubscribe(typeid(*this).name());
   boundary[number] = &boundary_object;
-  boundary_object.subscribe();
+  boundary_object.subscribe(typeid(*this).name());
 }
 
 
@@ -217,9 +217,9 @@ void Triangulation<dim>::copy_triangulation (const Triangulation<dim> &old_tria)
 
   for (unsigned i=0;i<255;++i)
     {
-      boundary[i]->unsubscribe ();
+      boundary[i]->unsubscribe(typeid(*this).name());
       boundary[i]      = old_tria.boundary[i];
-      boundary[i]->subscribe ();
+      boundary[i]->subscribe(typeid(*this).name());
     }
 
   levels.reserve (old_tria.levels.size());
@@ -4163,10 +4163,10 @@ Triangulation<dim>::clear_despite_subscriptions()
                                   // and then set them again
   const unsigned int n=n_subscriptions();
   for (unsigned int i=0; i<n; ++i)
-    unsubscribe();
+    unsubscribe(typeid(*this).name());
   clear ();
   for (unsigned int i=0; i<n; ++i)
-    subscribe();
+    subscribe(typeid(*this).name());
 }
 
 
index 035d6af7979e0abc2b4bcc43133ba0f90fd67391..3a28e7f1d5e9f129b34b2ff00451a9154655a9eb 100644 (file)
@@ -60,7 +60,7 @@ TimeDependent::insert_timestep (const TimeStepBase *position,
          ExcInvalidPosition());
 
                                   // lock this timestep from deletion
-  new_timestep->subscribe();
+  new_timestep->subscribe(typeid(*this).name());
 
                                   // first insert the new time step
                                   // into the doubly linked list
@@ -123,7 +123,7 @@ void TimeDependent::delete_timestep (const unsigned int position)
   Assert (position<timesteps.size(),
          ExcInvalidPosition());
 
-  timesteps[position]->unsubscribe();
+  timesteps[position]->unsubscribe(typeid(*this).name());
   delete timesteps[position];
   timesteps.erase (timesteps.begin() + position);
 
@@ -437,7 +437,7 @@ TimeStepBase_Tria<dim>::~TimeStepBase_Tria ()
 {
   if (!flags.delete_and_rebuild_tria)
     {
-      tria->unsubscribe ();
+      tria->unsubscribe(typeid(*this).name());
       delete tria;
     }
   else
@@ -471,7 +471,7 @@ TimeStepBase_Tria<dim>::sleep (const unsigned sleep_level)
       
       if (flags.delete_and_rebuild_tria)
        {
-         tria->unsubscribe();
+         tria->unsubscribe(typeid(*this).name());
          delete tria;
          tria = 0;
        };
@@ -505,7 +505,7 @@ void TimeStepBase_Tria<dim>::restore_grid ()
                                   // create a virgin triangulation and
                                   // set it to a copy of the coarse grid
   tria = new Triangulation<dim> ();
-  tria->subscribe();
+  tria->subscribe(typeid(*this).name());
   tria->copy_triangulation (*coarse_grid);
 
                                   // for each of the previous refinement

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.