]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor changes.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 May 2005 03:55:30 +0000 (03:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 May 2005 03:55:30 +0000 (03:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@10736 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 0ec59d744a7031ad3c715f0b7852b4d346007a74..335408d75e9d2cb0163243f5cb4e46aab6209b0d 100644 (file)
@@ -1591,11 +1591,12 @@ namespace QuasiStaticElasticity
                  const SymmetricTensor<2,dim> &old_stress
                    = local_quadrature_points_data[q_point].old_stress;
                
-                 cell_rhs(i) += (fe_values.shape_value (i,q_point) *
-                                 body_force_values[q_point](component_i)
+                 cell_rhs(i) += (body_force_values[q_point](component_i) *
+                                 fe_values.shape_value (i,q_point)
                                  -
-                                 get_strain (fe_values,i,q_point) *
-                                 old_stress) *
+                                  old_stress *
+                                 get_strain (fe_values,i,q_point))
+                                 *
                                 fe_values.JxW (q_point);
                }
            }

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.