From a751a5c67e33ad07252e4c79705ea75adde772ff Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Thu, 6 Jul 2023 16:16:31 +0200 Subject: [PATCH] [fitting] Fix a bug in dtau computation for scale-only derivatives --- Ponca/src/Fitting/gls.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ponca/src/Fitting/gls.hpp b/Ponca/src/Fitting/gls.hpp index 6fd522de5..39533c7c7 100644 --- a/Ponca/src/Fitting/gls.hpp +++ b/Ponca/src/Fitting/gls.hpp @@ -30,7 +30,7 @@ GLSDer ::dtau() const ScalarArray dfield = Base::m_dUc; // Recall that tau is the field function at the evaluation point, we thus must take care about // its variation when differentiating in space: - if(this->isScaleDer()) + if(this->isSpaceDer()) dfield.template tail() += Base::m_ul; return (dfield * prattNorm - Base::m_uc * cfactor * Base::dprattNorm2()) / prattNorm2;