energymodule: avoid extra variable

This commit is contained in:
Arne Morten Kvarving committed 2025-04-29 12:55:04 +02:00
1 parent beb5a41311
commit 0a8f6551bf
1 file changed
+2 -3
+2 -3
View File
@@ -817,11 +817,10 @@ protected:
DimVector distVec = face.integrationPos();
distVec -= insideScv.geometry().center();
Scalar tmp = 0;
Scalar dist = 0;
for (unsigned dimIdx = 0; dimIdx < dimWorld; ++dimIdx) {
tmp += distVec[dimIdx] * face.normal()[dimIdx];
dist += distVec[dimIdx] * face.normal()[dimIdx];
}
Scalar dist = tmp;
// if the following assertation triggers, the center of the
// center of the interior SCV was not inside the element!