From 9fcaf051c97093f01a5c0c67e5face347cab5e04 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 25 Aug 2023 20:08:42 +0200 Subject: [PATCH] Update source/base/tensor_product_polynomials.cc Co-authored-by: Daniel Arndt --- source/base/tensor_product_polynomials.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/base/tensor_product_polynomials.cc b/source/base/tensor_product_polynomials.cc index 7c4313c65a..2a25a2fca1 100644 --- a/source/base/tensor_product_polynomials.cc +++ b/source/base/tensor_product_polynomials.cc @@ -329,13 +329,13 @@ namespace internal std::vector> & third_derivatives, std::vector> & fourth_derivatives) { - const bool update_values = (values.size() == indices.size() * size_x), - update_grads = (grads.size() == indices.size() * size_x), - update_grad_grads = - (grad_grads.size() == indices.size() * size_x), - update_3rd_derivatives = - (third_derivatives.size() == indices.size() * size_x), - update_4th_derivatives = + const bool update_values = (values.size() == indices.size() * size_x); + const bool update_grads = (grads.size() == indices.size() * size_x); + const bool update_grad_grads = + (grad_grads.size() == indices.size() * size_x); + const bool update_3rd_derivatives = + (third_derivatives.size() == indices.size() * size_x); + const bool update_4th_derivatives = (fourth_derivatives.size() == indices.size() * size_x); // For values, 1st and 2nd derivatives use a more lengthy code that -- 2.39.5