Skip to content

Commit f417862

Browse files
committed
fix bug introduced in #1009
1 parent eabe878 commit f417862

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ void CSolver::InitiatePeriodicComms(CGeometry *geometry,
599599
consistently by using the complete control volume info
600600
from both sides of the periodic face. ---*/
601601

602-
for (iVar = 0; iVar< nVar; iVar++)
603-
Und_Lapl[iVar] = 0.0;
602+
for (iVar = 0; iVar < nVar; iVar++)
603+
Und_Lapl[iVar] = 0.0;
604604

605605
for (iNeighbor = 0; iNeighbor < geometry->nodes->GetnPoint(iPoint); iNeighbor++) {
606606
jPoint = geometry->nodes->GetPoint(iPoint, iNeighbor);
@@ -772,7 +772,7 @@ void CSolver::InitiatePeriodicComms(CGeometry *geometry,
772772

773773
/*--- Rotate the partial gradients in space for all variables. ---*/
774774

775-
for (iVar = 0; iVar < nVar; iVar++) {
775+
for (iVar = 0; iVar < nPrimVarGrad; iVar++) {
776776
Rotate(zeros, jacBlock[iVar], rotBlock[iVar]);
777777
}
778778

0 commit comments

Comments
 (0)