Skip to content

Commit 948d1b3

Browse files
Update SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp
Co-authored-by: Pedro Gomes <[email protected]>
1 parent 64a891f commit 948d1b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ inline void Custom_Source_Residual(CGeometry *geometry, CSolver **solver_contain
339339

340340
/*--- Compute the residual for this control volume and subtract. ---*/
341341
for (iVar = 0; iVar < nVar; iVar++) {
342-
LinSysRes[iPoint*nVar+iVar] += PointSource[iPoint][iVar] * Volume;
342+
LinSysRes(iPoint, iVar) += PointSource(iPoint, iVar) * Volume;
343343
}
344344
}
345345
END_SU2_OMP_FOR

0 commit comments

Comments
 (0)