]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust existing serialization tests to also check active_cell_index().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Apr 2015 22:37:59 +0000 (17:37 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Apr 2015 00:10:19 +0000 (19:10 -0500)
tests/serialization/triangulation_01.cc
tests/serialization/triangulation_02.cc

index 6d4f099a50785c15e4a8a6a0b16fdeb0cad2c131..43a277cef76dc2526208743e3db63450f3cc33e2 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2010 - 2014 by the deal.II authors
+// Copyright (C) 2010 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -93,6 +93,10 @@ namespace dealii
 
        if (c1->manifold_id() != c2->manifold_id())
          return false;
+
+       if (c1->active() && c2->active())
+         if (c1->active_cell_index() != c2->active_cell_index())
+           return false;
       }
 
     // also check the order of raw iterators as they contain
index b0b4ce1cf1d77db16c37042a712cebaa4376a267..1e0c3bfbcfbaa9704383235950f0a2a57544b48b 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2010 - 2014 by the deal.II authors
+// Copyright (C) 2010 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -95,6 +95,10 @@ namespace dealii
        
        if (c1->manifold_id() != c2->manifold_id())
          return false;
+
+       if (c1->active() && c2->active())
+         if (c1->active_cell_index() != c2->active_cell_index())
+           return false;
       }
 
     // also check the order of raw iterators as they contain

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.