From 39bff5131ca257f0399431909de4b5322104dacf Mon Sep 17 00:00:00 2001
From: JohannesGaessler <johannesg@5d6.de>
Date: Wed, 21 Jun 2023 18:35:23 +0200
Subject: [PATCH] Fix value not being set to min for != NodeDensity

---
 v2.5/toolkit/fastnlotoolkit/fastNLOInterpolBase.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2.5/toolkit/fastnlotoolkit/fastNLOInterpolBase.cc b/v2.5/toolkit/fastnlotoolkit/fastNLOInterpolBase.cc
index 9a593a0b..2e8608f6 100644
--- a/v2.5/toolkit/fastnlotoolkit/fastNLOInterpolBase.cc
+++ b/v2.5/toolkit/fastnlotoolkit/fastNLOInterpolBase.cc
@@ -384,7 +384,7 @@ bool fastNLOInterpolBase::CheckX(double& x) {
       return true;
    }
    //printf("x=%e, %e;   fgrid=%e, %e;  ratio: %e\n",x,x-1.,fgrid[0],fgrid[0]-1,x/fgrid[0]-1);
-   if ( x < fgrid[0] && false) {
+   if ( x < fgrid[0] && !fExtendLow) {
       if ( x!=fLastVal[1] && fgrid[0]/x-1>1.e-6)
          warn["CheckX"]<<"Value "<<x<<" is smaller than smallest node (min="<<fgrid[0]<<"). Using this first node."<<endl;
       fLastVal[1] = x; // use this to monitor whenever there was an incident
-- 
GitLab