From: Daniel Arndt Date: Thu, 30 Mar 2023 21:20:54 +0000 (-0400) Subject: Fix a unused variable compiler warning in tria.cc X-Git-Tag: v9.5.0-rc1~390^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15002%2Fhead;p=dealii.git Fix a unused variable compiler warning in tria.cc --- diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index fec6ed0f1b..437362557d 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -3083,6 +3083,7 @@ namespace parallel ExcInternalError()); } +# ifdef DEBUG // count the number of owned, active cells and compare with p4est. unsigned int n_owned = 0; for (const auto &cell : this->active_cell_iterators()) @@ -3094,6 +3095,7 @@ namespace parallel Assert(static_cast( parallel_forest->local_num_quadrants) == n_owned, ExcInternalError()); +# endif } this->smooth_grid = save_smooth;