From: Wolfgang Bangerth Date: Mon, 15 Nov 2010 00:29:28 +0000 (+0000) Subject: Reshuffle a couple lines of code. X-Git-Tag: v8.0.0~4927 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=231064a1ef843e9d0c4485f1662cc29b8a5d5e99;p=dealii.git Reshuffle a couple lines of code. git-svn-id: https://svn.dealii.org/trunk@22730 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-40/step-40.cc b/deal.II/examples/step-40/step-40.cc index 1f02fe139c..c561a2c902 100644 --- a/deal.II/examples/step-40/step-40.cc +++ b/deal.II/examples/step-40/step-40.cc @@ -388,20 +388,26 @@ void LaplaceProblem::assemble_system () fe_values.reinit (cell); for (unsigned int q_point=0; q_point - 0.5+0.25*sin(4.0*numbers::PI*fe_values.quadrature_point(q_point)[0]) - ? 1 : -1) * - fe_values.JxW(q_point)); - } + { + const double + rhs_value + = (fe_values.quadrature_point(q_point)[1] + > + 0.5+0.25*sin(4.0*numbers::PI*fe_values.quadrature_point(q_point)[0]) + ? 1 : -1); + + for (unsigned int i=0; iget_dof_indices (local_dof_indices); constraints.distribute_local_to_global (cell_matrix,