Skip to content

Commit 0adcb7e

Browse files
author
rois1995
committed
- compilation erorr
1 parent d9f329e commit 0adcb7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,9 @@ void CTurbSSTSolver::SetDES_LengthScale(CSolver **solver, CGeometry *geometry, C
12841284
for (const auto kPoint : geometry->nodes->GetPoints(iPoint)){
12851285
const auto coord_k = geometry->nodes->GetCoord(kPoint);
12861286

1287-
su2double delta[3];
1288-
for (auto iDim = 0u; iDim < nDim; iDim++){
1287+
su2double delta[MAXNDIM] = {};
1288+
// This should only be performed on 3D cases anyway
1289+
for (auto iDim = 0u; iDim < 3; iDim++){
12891290
delta[iDim] = (coord_j[iDim] - coord_k[iDim])/2.0; // Should I divide by 2 as I am interested in the dual volume?
12901291
}
12911292
su2double l_n_minus_m[3];

0 commit comments

Comments
 (0)