Skip to content

Commit 2541151

Browse files
author
paan882
committed
Restore nPrimVarGrad in InitiatePeriodicComms
1 parent 6a2f950 commit 2541151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ void CSolver::InitiatePeriodicComms(CGeometry *geometry,
363363

364364
auto *Diff = new su2double[nVar];
365365
auto *Und_Lapl = new su2double[nVar];
366-
auto *Sol_Min = new su2double[nVar];
367-
auto *Sol_Max = new su2double[nVar];
366+
auto *Sol_Min = new su2double[nPrimVarGrad];
367+
auto *Sol_Max = new su2double[nPrimVarGrad];
368368
auto *rotPrim_i = new su2double[nPrimVar];
369369
auto *rotPrim_j = new su2double[nPrimVar];
370370

0 commit comments

Comments
 (0)