]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid unnecessary template argument. 11065/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Oct 2020 19:10:59 +0000 (13:10 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Oct 2020 19:12:05 +0000 (13:12 -0600)
examples/step-5/step-5.cc
examples/step-6/step-6.cc

index 5b9d6710d88e57c8a2bbfbddb6055571a0f4e8d5..e2eb706195932309dd1d04200bf85bd467520bce 100644 (file)
@@ -179,7 +179,7 @@ void Step5<dim>::assemble_system()
   // Next is the typical loop over all cells to compute local contributions
   // and then to transfer them into the global matrix and vector. The only
   // change in this part, compared to step-4, is that we will use the
-  // <code>coefficient</code> function defined above to compute the
+  // <code>coefficient()</code> function defined above to compute the
   // coefficient value at each quadrature point.
   for (const auto &cell : dof_handler.active_cell_iterators())
     {
@@ -191,7 +191,7 @@ void Step5<dim>::assemble_system()
       for (const unsigned int q_index : fe_values.quadrature_point_indices())
         {
           const double current_coefficient =
-            coefficient<dim>(fe_values.quadrature_point(q_index));
+            coefficient(fe_values.quadrature_point(q_index));
           for (const unsigned int i : fe_values.dof_indices())
             {
               for (const unsigned int j : fe_values.dof_indices())
index bc8b93a715f7aebf209eb6e0a16cdf582c39a4e2..858260b104536d08fba0ae602cf6884941251e24 100644 (file)
@@ -281,7 +281,7 @@ void Step6<dim>::assemble_system()
       for (const unsigned int q_index : fe_values.quadrature_point_indices())
         {
           const double current_coefficient =
-            coefficient<dim>(fe_values.quadrature_point(q_index));
+            coefficient(fe_values.quadrature_point(q_index));
           for (const unsigned int i : fe_values.dof_indices())
             {
               for (const unsigned int j : fe_values.dof_indices())

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.