mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2563 Compaction. Fixed compaction calculation due to wrong sign
This commit is contained in:
parent
381ae6bd81
commit
c685453fbb
@ -1485,7 +1485,7 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateCompactionValues
|
||||
if (refElement.elementIdx != cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
float shortestDist = HUGE_VALF;
|
||||
size_t closestNodeIdx = cvf::UNDEFINED_SIZE_T;
|
||||
size_t closestRefNodeIdx = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
for (size_t nodeIdx : refElement.elementFaceNodeIdxs)
|
||||
{
|
||||
@ -1493,11 +1493,11 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateCompactionValues
|
||||
if (dist < shortestDist)
|
||||
{
|
||||
shortestDist = dist;
|
||||
closestNodeIdx = nodeIdx;
|
||||
closestRefNodeIdx = nodeIdx;
|
||||
}
|
||||
}
|
||||
|
||||
compactionFrame[n] = u3Frames->frameData(t)[n] - u3Frames->frameData(t)[closestNodeIdx];
|
||||
compactionFrame[n] = u3Frames->frameData(t)[closestRefNodeIdx] - u3Frames->frameData(t)[n];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user