mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 23:20:12 -05:00
energymodule: avoid extra variable
This commit is contained in:
1 parent
beb5a41311
commit
0a8f6551bf
1 file changed
+2
-3
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user