]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Set some parentheses in Stokes assembly so the inner product of a symmetric tensor...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 20 May 2009 03:56:56 +0000 (03:56 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 20 May 2009 03:56:56 +0000 (03:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@18869 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/step-31.cc

index 593bf5953eb069e789af86edf8090c5f9a58a260..9bcb73480dbd9459d14c56fe2c6bf627bfe7b7eb 100644 (file)
@@ -1765,7 +1765,7 @@ void BoussinesqFlowProblem<dim>::assemble_stokes_system ()
            for (unsigned int i=0; i<dofs_per_cell; ++i)
              for (unsigned int j=0; j<dofs_per_cell; ++j)
                local_matrix(i,j) += (EquationData::eta * 2 *
-                                     grads_phi_u[i] * grads_phi_u[j]
+                                     (grads_phi_u[i] * grads_phi_u[j])
                                      - div_phi_u[i] * phi_p[j]
                                      - phi_p[i] * div_phi_u[j])
                                     * stokes_fe_values.JxW(q);

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.