]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix ICC warning when calling GridTools::cell_measure 10963/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 24 Sep 2020 12:58:01 +0000 (08:58 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 24 Sep 2020 13:05:17 +0000 (09:05 -0400)
source/grid/tria.cc

index af34f97404810b4395e4391ef878c6362b98f5f7..e280fccfb4323424920ffc8259ebe9dbc9c0747f 100644 (file)
@@ -2199,10 +2199,9 @@ namespace internal
               // throw an exception if no such cells should exist.
               if (tria.check_for_distorted_cells)
                 {
-                  const double cell_measure =
-                    GridTools::cell_measure<dim>(vertices,
-                                                 ArrayView<const unsigned int>(
-                                                   cells[cell_no].vertices));
+                  const double cell_measure = GridTools::cell_measure<spacedim>(
+                    vertices,
+                    ArrayView<const unsigned int>(cells[cell_no].vertices));
                   AssertThrow(cell_measure > 0, ExcGridHasInvalidCell(cell_no));
                 }
             }

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.