From 1ce8583f289941e167485bcdcb630a3559c9901d Mon Sep 17 00:00:00 2001 From: Wenqing Wang <wenqing.wang@ufz.de> Date: Mon, 28 Mar 2022 15:23:27 +0200 Subject: [PATCH] [PETScVector] call config() inside shallowCopy --- MathLib/LinAlg/PETSc/PETScVector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MathLib/LinAlg/PETSc/PETScVector.cpp b/MathLib/LinAlg/PETSc/PETScVector.cpp index a53dda0b7cd..ac7a6394ea7 100644 --- a/MathLib/LinAlg/PETSc/PETScVector.cpp +++ b/MathLib/LinAlg/PETSc/PETScVector.cpp @@ -314,7 +314,7 @@ void PETScVector::shallowCopy(const PETScVector& v) has_ghost_id_ = v.has_ghost_id_; global_ids2local_ids_ghost_ = v.global_ids2local_ids_ghost_; - VecSetOption(v_, VEC_IGNORE_NEGATIVE_INDICES, PETSC_TRUE); + config(); } void finalizeVectorAssembly(PETScVector& vec) -- GitLab