From: frohne Date: Fri, 8 Feb 2013 16:34:49 +0000 (+0000) Subject: compress() replaced by compress(VectorOperation::add) respectively compress(VectorOpe... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbea82b92ffd034771220b85c47974aa5d1743f8;p=dealii-svn.git compress() replaced by compress(VectorOperation::add) respectively compress(VectorOperation::insert) git-svn-id: https://svn.dealii.org/trunk@28277 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 8ecba5a16a..76a9f13ead 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -565,7 +565,7 @@ namespace Step42 diag_mass_matrix_vector (j) = mass_matrix.diag_element (j); number_iterations = 0; - diag_mass_matrix_vector.compress (); + diag_mass_matrix_vector.compress (VectorOperation::insert); } } @@ -688,8 +688,8 @@ namespace Step42 system_matrix_newton, system_rhs_newton, true); }; - system_matrix_newton.compress (); - system_rhs_newton.compress (); + system_matrix_newton.compress (VectorOperation::add); + system_rhs_newton.compress (VectorOperation::add); } template @@ -795,7 +795,7 @@ namespace Step42 cell_number += 1; }; - system_rhs_newton.compress (); + system_rhs_newton.compress (VectorOperation::add); unsigned int sum_elast_points = Utilities::MPI::sum(elast_points, mpi_communicator); unsigned int sum_plast_points = Utilities::MPI::sum(plast_points, mpi_communicator); @@ -848,7 +848,7 @@ namespace Step42 mass_matrix); } - mass_matrix.compress (); + mass_matrix.compress (VectorOperation::add); } // @sect4{PlasticityContactProblem::update_solution_and_constraints} @@ -922,7 +922,7 @@ namespace Step42 active_set_locally_owned.add_index (index_z); } } - distributed_solution.compress(); + distributed_solution.compress (VectorOperation::insert); unsigned int sum_contact_constraints = Utilities::MPI::sum(active_set_locally_owned.n_elements (), mpi_communicator);