]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify code. 18146/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Feb 2025 22:54:41 +0000 (15:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Feb 2025 22:54:41 +0000 (15:54 -0700)
source/distributed/cell_weights.cc

index 251f14f7daf524c47844f6b690b04539601776db..280922bf7bf8186d310e056af40e53c33499da1a 100644 (file)
@@ -146,12 +146,8 @@ namespace parallel
              const typename dealii::Triangulation<dim, spacedim>::cell_iterator
                              &cell,
              const CellStatus status) -> unsigned int {
-      return CellWeights<dim, spacedim>::weighting_callback(cell,
-                                                            status,
-                                                            std::cref(
-                                                              dof_handler),
-                                                            std::cref(*tria),
-                                                            weighting_function);
+      return CellWeights<dim, spacedim>::weighting_callback(
+        cell, status, dof_handler, *tria, weighting_function);
     };
   }
 

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.