From 20a8d1b9a4902b413875952ad81e6a2ca95bc2f0 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Wed, 19 Aug 2020 12:33:06 +0200 Subject: [PATCH] #6301 Fix incorrect index for OBG0 element. --- .../RigFemPartResultCalculatorMudWeightWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartResultCalculatorMudWeightWindow.cpp b/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartResultCalculatorMudWeightWindow.cpp index ab225f1ed3..04ef5b7984 100644 --- a/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartResultCalculatorMudWeightWindow.cpp +++ b/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartResultCalculatorMudWeightWindow.cpp @@ -270,7 +270,7 @@ RigFemScalarResultFrames* RigFemPartResultCalculatorMudWeightWindow::calculate( // Initial overburden gradient if ( OBG0FromGrid ) { - OBG0 = obg0FrameData[nodeIdx]; + OBG0 = obg0FrameData[elmNodResIdx]; } // FG is for sands, SFG for shale. Sands has valid PP, shale does not.