]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the right index space in the right space.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 17 Apr 2011 21:17:31 +0000 (21:17 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 17 Apr 2011 21:17:31 +0000 (21:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@23603 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 0915fbbb28f4792201fa5af0a82ec893c2cfaa49..a5b02124748e967299e8006a899aec7c22141a10 100644 (file)
@@ -471,11 +471,10 @@ void FluidStructureProblem<dim>::assemble_system ()
                    {
                      const Tensor<1,dim> normal_vector = stokes_fe_face_values.normal_vector(q);
 
-                     for (unsigned int k=0; k<dofs_per_cell; ++k)
-                       {
-                         stokes_phi_grads_u[k] = stokes_fe_face_values[velocities].symmetric_gradient (k, q);
-                         elasticity_phi[k] = elasticity_fe_face_values[displacements].value (k,q);
-                       }
+                     for (unsigned int k=0; k<stokes_dofs_per_cell; ++k)
+                       stokes_phi_grads_u[k] = stokes_fe_face_values[velocities].symmetric_gradient (k, q);
+                     for (unsigned int k=0; k<elasticity_dofs_per_cell; ++k)
+                       elasticity_phi[k] = elasticity_fe_face_values[displacements].value (k,q);
 
                      for (unsigned int i=0; i<stokes_dofs_per_cell; ++i)
                        for (unsigned int j=0; j<elasticity_dofs_per_cell; ++j)

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.