Skip to content

Commit e5080a1

Browse files
author
rois1995
committed
- Solve declaration hids variable
1 parent ab6bedb commit e5080a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,20 +996,20 @@ void CSolver::InitiatePeriodicComms(CGeometry *geometry,
996996
if (!geometry->nodes->GetPeriodicBoundary(jPoint)) {
997997

998998
size_t iEdge = geometry->nodes->GetEdge(iPoint, iNeigh);
999-
const su2double weight = halfOnVol;
999+
weight = halfOnVol;
10001000

10011001
const auto area = geometry->edges->GetNormal(iEdge);
10021002
AD::SetPreaccIn(area, nDim);
10031003

10041004
const auto coordsJPoint = geometry->nodes->GetCoord(jPoint);
10051005

10061006
su2double I2JVec[3] = {0.0};
1007-
for (size_t iDim = 0; iDim < nDim; ++iDim) I2JVec[iDim] = coordsJPoint[iDim] - coordsIPoint[iDim];
1007+
for (iDim = 0; iDim < nDim; ++iDim) I2JVec[iDim] = coordsJPoint[iDim] - coordsIPoint[iDim];
10081008

10091009
const su2double I2JVecnorm = GeometryToolbox::SquaredNorm(nDim, I2JVec);
10101010
const su2double AreaNorm = GeometryToolbox::Norm(nDim, area);
10111011
su2double edgeNormal = 0.0;
1012-
for (size_t iDim = 0; iDim < nDim; ++iDim)
1012+
for (iDim = 0; iDim < nDim; ++iDim)
10131013
edgeNormal += area[iDim] * I2JVec[iDim]/AreaNorm;
10141014

10151015
for (iDim = 0; iDim<nDim; iDim++)

0 commit comments

Comments
 (0)