]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a unused variable compiler warning in tria.cc 15002/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 30 Mar 2023 21:20:54 +0000 (17:20 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 30 Mar 2023 21:21:11 +0000 (17:21 -0400)
source/distributed/tria.cc

index fec6ed0f1b9dd0afaaeec232e9d9fde51a8c9afa..437362557df8998ac5136d104e2f7e1de43d8f09 100644 (file)
@@ -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<unsigned int>(
                  parallel_forest->local_num_quadrants) == n_owned,
                ExcInternalError());
+#  endif
       }
 
       this->smooth_grid = save_smooth;

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.