#6301 Fix incorrect index for OBG0 element.

This commit is contained in:
Kristian Bendiksen
2020-08-19 12:33:06 +02:00
parent f5f7e393e3
commit 20a8d1b9a4

View File

@@ -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.