]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
copy_triangulation now also triggers the 'create' signal. It didn't before, but that...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2011 01:59:59 +0000 (01:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2011 01:59:59 +0000 (01:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@23780 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/include/deal.II/grid/tria.h
deal.II/source/grid/tria.cc

index 75d53930a5cbe189b650ed0dea25a0b47b66b373..16d9059000dca02e468f25e25972aee5e17325cb 100644 (file)
@@ -71,6 +71,14 @@ particular virtual functions inherited from a base class.
 While the old mechanism should continue to work, you should consider
 upgrading. For more information on the signals mechanism, see the 
 documentation of the Triangulation class.
+
+In addition to the change above, the new implementation now offers two
+more signals one can subscribe to: Triangulation::Signals::clead for
+when the triangulation is cleared, and Triangulation::Signals::any_change
+that can be used for any operation that changes the mesh. Furthermore,
+in a change from previous behavior, the Triangulations::Signal::create 
+signal is now also triggered when another triangulation is copied to
+the one that owns the signal.
 <br>
 (Wolfgang Bangerth, 2011/06/01)
 
index 71860e83a40dd9ea63ae853f4ce91c3ed88ff057..46c1ec9797f51b08cd4caa69f147391e54f8103b 100644 (file)
@@ -1226,7 +1226,8 @@ namespace internal
  *   actions by which the triangulation can modify itself and potentially
  *   require follow-up action elsewhere:
  *   - creation: This signal is triggered whenever the
- *     Triangulation::create_triangulation is called
+ *     Triangulation::create_triangulation or Triangulation::copy_triangulation
+ *     is called
  *   - pre-refinement: This signal is triggered at the beginning
  *     of execution of the Triangulation::execute_coarsening_and_refinement
  *     function (which is itself called by other functions such as 
@@ -1833,6 +1834,8 @@ class Triangulation : public Subscriptor
                                      *  @note Calling this function triggers 
                                      *  the 'copy' signal on old_tria, i.e.
                                      *  the triangulation being copied <i>from</i>.
+                                     *  It also triggers the 'create' signal of
+                                     *  the current triangulation.
                                      *  See the section on signals in the
                                      *  general documentation for more information.
                                      * 
index 611fee0721086682578a688d4469caba19dcd1d9..2ad8aa8c39806904841b835e16cd97dc84c84bbd 100644 (file)
@@ -9536,6 +9536,9 @@ copy_triangulation (const Triangulation<dim, spacedim> &old_tria)
                                   // inform RefinementListeners of old_tria of
                                   // the copy operation
   old_tria.signals.copy (*this);
+                                  // also inform all listeners that the
+                                  // triangulation has been created
+  signals.create();
 
                                   // note that we need not copy the
                                   // subscriptor!

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.