]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-3: use a double for the RHS 10918/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 15 Sep 2020 15:34:05 +0000 (11:34 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 15 Sep 2020 15:34:05 +0000 (11:34 -0400)
examples/step-3/step-3.cc

index 9aa93c174e93b9251c33b61ab25df35945a63478..2a701696592790240a94bd77bb741c6041bc6aa7 100644 (file)
@@ -451,7 +451,7 @@ void Step3::assemble_system()
           // be considered in the following programs).
           for (const unsigned int i : fe_values.dof_indices())
             cell_rhs(i) += (fe_values.shape_value(i, q_index) * // phi_i(x_q)
-                            1 *                                 // f(x_q)
+                            1. *                                // f(x_q)
                             fe_values.JxW(q_index));            // dx
         }
       // Now that we have the contribution of this cell, we have to transfer

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.