]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed sign error in step-29
authorMoritz Allmaras <allmaras@math.tamu.edu>
Mon, 7 Mar 2011 20:34:37 +0000 (20:34 +0000)
committerMoritz Allmaras <allmaras@math.tamu.edu>
Mon, 7 Mar 2011 20:34:37 +0000 (20:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@23465 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ae8cb91c2663f2e0638dde102751ea575e4374ee..412eff2ac8bfbe207a25172b2351a1b5be5c43e6 100644 (file)
@@ -1184,7 +1184,7 @@ void UltrasoundProblem<dim>::assemble_system ()
                                                   // component it
                                                   // belongs.
                  for (unsigned int q_point=0; q_point<n_face_q_points; ++q_point)
-                   cell_matrix(i,j) += ((fe.system_to_component_index(i).first) ? -1 : 1) * 
+                   cell_matrix(i,j) += ((fe.system_to_component_index(i).first == 0) ? -1 : 1) * 
                                        fe_face_values.shape_value(i,q_point) *
                                        fe_face_values.shape_value(j,q_point) *
                                        c *

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.