From e60d90f118dd8ddd6517cd83e923e3686299f0e3 Mon Sep 17 00:00:00 2001 From: msteigemann Date: Sun, 19 Jul 2015 22:22:11 +0200 Subject: [PATCH] VectorTools::interpolate_to_different_mesh: insert compress needed for PETSc parallel vectors --- include/deal.II/numerics/vector_tools.templates.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 3995bea746..50b9a2cfca 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -672,6 +672,8 @@ namespace VectorTools cell2->set_dof_values_by_interpolation(cache, u2); } + // finish the work on parallel vectors + u2.compress (VectorOperation::insert); // Apply hanging node constraints. constraints.distribute(u2); } -- 2.39.5