From: Wolfgang Bangerth Date: Fri, 10 Apr 2015 22:37:59 +0000 (-0500) Subject: Adjust existing serialization tests to also check active_cell_index(). X-Git-Tag: v8.3.0-rc1~274^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd68e59ad51affe5c5e73b9234c132cae8320a01;p=dealii.git Adjust existing serialization tests to also check active_cell_index(). --- diff --git a/tests/serialization/triangulation_01.cc b/tests/serialization/triangulation_01.cc index 6d4f099a50..43a277cef7 100644 --- a/tests/serialization/triangulation_01.cc +++ b/tests/serialization/triangulation_01.cc @@ -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 diff --git a/tests/serialization/triangulation_02.cc b/tests/serialization/triangulation_02.cc index b0b4ce1cf1..1e0c3bfbcf 100644 --- a/tests/serialization/triangulation_02.cc +++ b/tests/serialization/triangulation_02.cc @@ -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