From 6f3778600c00912903f7f22dc6a3501f4e4ceb93 Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 25 Feb 2013 23:21:10 +0000 Subject: [PATCH] update examples wrt compress() git-svn-id: https://svn.dealii.org/trunk@28563 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-18/step-18.cc | 2 +- deal.II/examples/step-42/step-42.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-18/step-18.cc b/deal.II/examples/step-18/step-18.cc index 838627b729..899fa55f2c 100644 --- a/deal.II/examples/step-18/step-18.cc +++ b/deal.II/examples/step-18/step-18.cc @@ -1141,7 +1141,7 @@ namespace Step18 } // Now compress the vector and the system matrix: - system_matrix.compress(); + system_matrix.compress(VectorOperation::add); system_rhs.compress(VectorOperation::add); diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 454abed001..79ca13e053 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -851,7 +851,7 @@ namespace Step42 system_matrix_newton, system_rhs_newton, true); }; - system_matrix_newton.compress (); + system_matrix_newton.compress (VectorOperation::add); system_rhs_newton.compress (VectorOperation::add); computing_timer.exit_section("Assembling"); @@ -1026,7 +1026,7 @@ namespace Step42 mass_matrix); } - mass_matrix.compress (); + mass_matrix.compress (VectorOperation::add); } // @sect4{PlasticityContactProblem::update_solution_and_constraints} -- 2.39.5