]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix odd use of comma operator. 6108/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Mar 2018 16:17:45 +0000 (10:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Mar 2018 16:17:45 +0000 (10:17 -0600)
step-35 uses an odd way of concatenating two 'void' statements, using
operator comma where a semicolon was intended. Fix this.

This was pointed out to me by my student Chen Shen.

examples/step-35/step-35.cc

index 7b7f08cff994366c24651b48a91920d2330adcd0..99cba265ab9dbc25bacc24c26e21996a71d8dda4 100644 (file)
@@ -1310,8 +1310,8 @@ namespace Step35
     for (; joint_cell != joint_endc; ++joint_cell, ++vel_cell, ++pres_cell)
       {
         joint_cell->get_dof_indices (loc_joint_dof_indices);
-        vel_cell->get_dof_indices (loc_vel_dof_indices),
-                 pres_cell->get_dof_indices (loc_pres_dof_indices);
+        vel_cell->get_dof_indices (loc_vel_dof_indices);
+        pres_cell->get_dof_indices (loc_pres_dof_indices);
         for (unsigned int i=0; i<joint_fe.dofs_per_cell; ++i)
           switch (joint_fe.system_to_base_index(i).first.first)
             {

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.