]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor improvements to some code in p::d::Triangulation. 6266/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Apr 2018 03:37:04 +0000 (21:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 19 Apr 2018 03:37:04 +0000 (21:37 -0600)
source/distributed/tria.cc

index 73b8b48b70efb4a1f59bf3f0d4b6f7a250231231..2d8e0844fc00d596c8c544bb83963cbe3254defe 100644 (file)
@@ -3267,10 +3267,12 @@ namespace parallel
                                                       const void *)> &unpack_callback)
     {
       Assert (offset >= sizeof(CellStatus),
-              ExcMessage ("invalid offset in notify_ready_to_unpack()"));
+              ExcMessage ("Invalid offset."));
       Assert (offset < sizeof(CellStatus)+attached_data_size,
-              ExcMessage ("invalid offset in notify_ready_to_unpack()"));
-      Assert (n_attached_datas > 0, ExcMessage ("notify_ready_to_unpack() called too often"));
+              ExcMessage ("Invalid offset."));
+      Assert (n_attached_datas > 0,
+              ExcMessage ("The notify_ready_to_unpack() has already been called "
+                          "once for each registered callback."));
 
       // Recurse over p4est and hand the caller the data back
       for (typename Triangulation<dim, spacedim>::cell_iterator
@@ -3313,7 +3315,7 @@ namespace parallel
       // would destroy the saved data before the second SolutionTransfer can
       // get it. This created a bug that is documented in
       // tests/mpi/p4est_save_03 with more than one SolutionTransfer.
-      if (!n_attached_datas && n_attached_deserialize == 0)
+      if (n_attached_datas == 0 && n_attached_deserialize == 0)
         {
           // everybody got their data, time for cleanup!
           attached_data_size = 0;

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.