From 05c36bdc299a4a827d2c679a90ec161ade8c7bbe Mon Sep 17 00:00:00 2001 From: Wenqing Wang <wenqing.wang@ufz.de> Date: Wed, 7 Jun 2017 17:47:37 +0200 Subject: [PATCH] [Num] Use correct constructor of PETScVector in LocalLinearLeastSquaresExtrapolator --- .../LocalLinearLeastSquaresExtrapolator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp index 9bc318cd9d8..5c5a15784ef 100644 --- a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp +++ b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp @@ -27,13 +27,14 @@ LocalLinearLeastSquaresExtrapolator::LocalLinearLeastSquaresExtrapolator( MathLib::MatrixSpecifications(dof_table.dofSizeWithoutGhosts(), dof_table.dofSizeWithoutGhosts(), &dof_table.getGhostIndices(), - nullptr))) + nullptr))), #ifndef USE_PETSC - , _residuals(dof_table.size()) + _residuals(dof_table.size()), #else - , _residuals(dof_table.size(), false) + _residuals(dof_table.dofSizeWithoutGhosts(), + dof_table.getGhostIndices(), false), #endif - , _local_to_global(dof_table) + _local_to_global(dof_table) { /* Note in case the following assertion fails: * If you copied the extrapolation code, for your processes from -- GitLab