From 3dded5ca4e1f1202bef5d3b6865f5bf63eead43c Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Thu, 7 Mar 2024 14:18:39 +0100 Subject: [PATCH] Skip recreating N_Vector in AmiVector::copy (#2363) We only copy if the sizes match. Since the std::vector is not reallocated, there is no need to recreate the N_Vector. --- src/vector.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vector.cpp b/src/vector.cpp index 78b66d7954..460b92c71c 100644 --- a/src/vector.cpp +++ b/src/vector.cpp @@ -53,7 +53,6 @@ void AmiVector::copy(AmiVector const& other) { getLength(), other.getLength() ); std::copy(other.vec_.begin(), other.vec_.end(), vec_.begin()); - synchroniseNVector(); } void AmiVector::synchroniseNVector() {