File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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++)
You can’t perform that action at this time.
0 commit comments