]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename the penalty parameter.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 18 May 2020 23:54:37 +0000 (17:54 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 19 May 2020 00:22:46 +0000 (18:22 -0600)
examples/step-70/step-70.cc

index 0c524d61d7ce0af3708decd8ec505f82ddbfdfb0..0f19d3f9f252c1f43d1872bbe733b8bd72482b7d 100644 (file)
@@ -1325,7 +1325,8 @@ namespace Step70
                                     fluid_fe->dofs_per_cell);
     dealii::Vector<double> local_rhs(fluid_fe->dofs_per_cell);
 
-    const auto k = 1.0 / GridTools::minimal_cell_diameter(fluid_tria);
+    const auto penalty_parameter =
+      1.0 / GridTools::minimal_cell_diameter(fluid_tria);
 
     // We loop over all the local particles. Although this could be achieved
     // directly by looping over all the cells, this would force us
@@ -1380,11 +1381,11 @@ namespace Step70
                           fluid_fe->system_to_component_index(j).first;
                         if (comp_i == comp_j)
                           local_matrix(i, j) +=
-                            k * par.penalty_term *
+                            penalty_parameter * par.penalty_term *
                             fluid_fe->shape_value(i, ref_q) *
                             fluid_fe->shape_value(j, ref_q) * JxW;
                       }
-                    local_rhs(i) += k * par.penalty_term *
+                    local_rhs(i) += penalty_parameter * par.penalty_term *
                                     solid_velocity.value(real_q, comp_i) *
                                     fluid_fe->shape_value(i, ref_q) * JxW;
                   }

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.