From e65dc2d5787565e5d1b17b2a0d0f8898739106c2 Mon Sep 17 00:00:00 2001
From: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
Date: Thu, 27 Oct 2022 15:38:19 +0100
Subject: [PATCH] BUG: integratedNonUniformTable: correct offsets (fixes #2614)

---
 .../integratedNonUniformTableThermophysicalFunction.C       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/integratedNonUniformTable/integratedNonUniformTableThermophysicalFunction.C b/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/integratedNonUniformTable/integratedNonUniformTableThermophysicalFunction.C
index 42706b7a438..55138b84a2e 100644
--- a/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/integratedNonUniformTable/integratedNonUniformTableThermophysicalFunction.C
+++ b/src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/integratedNonUniformTable/integratedNonUniformTableThermophysicalFunction.C
@@ -5,7 +5,7 @@
     \\  /    A nd           | www.openfoam.com
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
-    Copyright (C) 2020 OpenFOAM Foundation
+    Copyright (C) 2020-2022 OpenFOAM Foundation
     Copyright (C) 2020 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
@@ -66,8 +66,8 @@ integratedNonUniformTable
 
     for (label i = 1; i < intf_.size(); ++i)
     {
-        intf_[i] = intf_[i-1] + intfdT(0, values()[i].first());
-        intfByT_[i] = intfByT_[i-1] + intfByTdT(0, values()[i].first());
+        intf_[i] = intfdT(0, values()[i].first());
+        intfByT_[i] = intfByTdT(0, values()[i].first());
     }
 
     const scalar intfStd = intfdT(Pstd, Tstd);
-- 
GitLab