From 4b71f46dccc8a1dfc61b9cde0051089fa333ba18 Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 30 May 2002 21:02:39 +0000 Subject: [PATCH] stupid bracing mistake git-svn-id: https://svn.dealii.org/trunk@5948 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/matrices.cc | 33 ++++++++++----------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/deal.II/deal.II/source/numerics/matrices.cc b/deal.II/deal.II/source/numerics/matrices.cc index 4f57642b4e..a660d73673 100644 --- a/deal.II/deal.II/source/numerics/matrices.cc +++ b/deal.II/deal.II/source/numerics/matrices.cc @@ -362,8 +362,8 @@ MatrixCreator::create_mass_matrix_2 (const Mapping &mapping, fe.system_to_component_index(j).first)) cell_matrix(i,j) += (u * v * weight * coefficient_values[point]); - local_rhs(i) += v * rhs_values[point] * weight; } + local_rhs(i) += v * rhs_values[point] * weight; } } } @@ -387,8 +387,8 @@ MatrixCreator::create_mass_matrix_2 (const Mapping &mapping, cell_matrix(i,j) += (u * v * weight * coefficient_vector_values[point](component_i)); - local_rhs(i) += v * rhs_values[point] * weight; } + local_rhs(i) += v * rhs_values[point] * weight; } } } @@ -407,8 +407,8 @@ MatrixCreator::create_mass_matrix_2 (const Mapping &mapping, (fe.system_to_component_index(i).first == fe.system_to_component_index(j).first)) cell_matrix(i,j) += (u * v * weight); - local_rhs(i) += v * rhs_values[point] * weight; } + local_rhs(i) += v * rhs_values[point] * weight; } } @@ -629,11 +629,10 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, cell_matrix(i,j) += (u * v * weight * coefficient_values[point]); } - - cell_vector(i) += v * - rhs_values_system[point]( - fe.system_to_component_index(i).first) * weight; } + cell_vector(i) += v * + rhs_values_system[point]( + fe.system_to_component_index(i).first) * weight; } } } @@ -658,9 +657,8 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, cell_matrix(i,j) += (u * v * weight * coefficient_vector_values[point](component_i)); } - - cell_vector(i) += v * rhs_values_system[point](component_i) * weight; - } + } + cell_vector(i) += v * rhs_values_system[point](component_i) * weight; } } } @@ -680,12 +678,11 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, { cell_matrix(i,j) += (u * v * weight); } - - cell_vector(i) += v * - rhs_values_system[point]( - fe.system_to_component_index(i).first) * - weight; } + cell_vector(i) += v * + rhs_values_system[point]( + fe.system_to_component_index(i).first) * + weight; } } } @@ -709,8 +706,8 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, { const double u = fe_values.shape_value(j,point); cell_matrix(i,j) += (u * v * weight * coefficient_values[point]); - cell_vector(i) += v * rhs_values_scalar[point] *weight; } + cell_vector(i) += v * rhs_values_scalar[point] *weight; } } } @@ -725,8 +722,8 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, { const double u = fe_values.shape_value(j,point); cell_matrix(i,j) += (u * v * weight); - cell_vector(i) += v * rhs_values_scalar[point] * weight; } + cell_vector(i) += v * rhs_values_scalar[point] * weight; } } } @@ -878,7 +875,7 @@ create_boundary_mass_matrix_1 (const Mapping &mapping, }; - template +template void MatrixCreator::create_boundary_mass_matrix (const DoFHandler &dof, const Quadrature &q, SparseMatrix &matrix, -- 2.39.5