Skip to content

Commit da45637

Browse files
Potential fix for code scanning alert no. 5317: Declaration hides variable
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b6d331f commit da45637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/src/geometry/CGeometry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,8 +2510,8 @@ void CGeometry::ComputeModifiedSymmetryNormals(const CConfig* config) {
25102510
jNormal = it->second;
25112511
} else {
25122512
vertex[jMarker][jVertex]->GetNormal(jNormal.data());
2513-
const su2double area = GeometryToolbox::Norm(nDim, jNormal.data());
2514-
for (auto iDim = 0u; iDim < nDim; iDim++) jNormal[iDim] /= area;
2513+
const su2double jArea = GeometryToolbox::Norm(nDim, jNormal.data());
2514+
for (auto iDim = 0u; iDim < nDim; iDim++) jNormal[iDim] /= jArea;
25152515
}
25162516

25172517
// averaging

0 commit comments

Comments
 (0)