]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix step-57 bilinear form 15442/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 22 Jun 2023 20:43:00 +0000 (16:43 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 22 Jun 2023 20:58:59 +0000 (16:58 -0400)
examples/step-57/step-57.cc

index 2061d7cbaa29860e84d61502f7865b72c28547c1..4acd4f5069d6bafc4504728d10f059796b053fc1 100644 (file)
@@ -457,8 +457,8 @@ namespace Step57
                 local_rhs(i) +=
                   (-viscosity * scalar_product(grad_phi_u[i],
                                                present_velocity_gradients[q]) -
-                   phi_u[i] * (present_velocity_values[q] *
-                               present_velocity_gradients[q]) +
+                   phi_u[i] * (present_velocity_gradients[q] *
+                               present_velocity_values[q]) +
                    div_phi_u[i] * present_pressure_values[q] +
                    phi_p[i] * present_velocity_divergence -
                    gamma * div_phi_u[i] * present_velocity_divergence) *

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.