From eee6f59264cf438cb2ac2b72e6df224406ee5a9d Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@mpcdf.mpg.de> Date: Tue, 11 Aug 2020 16:50:41 +0200 Subject: [PATCH] moves instruction inside block where it's needed --- cpp/field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/field.cpp b/cpp/field.cpp index 2cbada82..d761b0cf 100644 --- a/cpp/field.cpp +++ b/cpp/field.cpp @@ -2401,7 +2401,6 @@ field<rnumber, be, fc> &field<rnumber, be, fc>::operator=( } else { - this->real_space_representation = false; // simple copy if (this->get_nx() == src.get_nx() && this->get_ny() == src.get_ny() && @@ -2412,6 +2411,7 @@ field<rnumber, be, fc> &field<rnumber, be, fc>::operator=( // complicated resize else { + this->real_space_representation = false; int64_t slice_size = src.clayout->local_size / src.clayout->subsizes[0]; // clean up std::fill_n(this->data, -- GitLab