File tree Expand file tree Collapse file tree
SU2_CFD/include/numerics/turbulent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
715715 AD::SetPreaccIn (PrimVar_Grad_i, nDim + idx.Velocity (), nDim);
716716 AD::SetPreaccIn (Vorticity_i, 3 );
717717 AD::SetPreaccIn (V_i[idx.Density ()], V_i[idx.LaminarViscosity ()], V_i[idx.EddyViscosity ()]);
718- AD::SetPreaccIn (Coord_i[1 ]);
718+ // AD::SetPreaccIn(Coord_i[1]);
719719 AD::SetPreaccIn (V_i[idx.Velocity () + 1 ]);
720720
721721 Density_i = V_i[idx.Density ()];
@@ -746,8 +746,10 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
746746 su2double diverg = 0.0 ;
747747 for (unsigned short iDim = 0 ; iDim < nDim; iDim++)
748748 diverg += PrimVar_Grad_i[iDim + idx.Velocity ()][iDim];
749- if (axisymmetric && Coord_i[1 ] > EPS) diverg += V_i[idx.Velocity () + 1 ] / Coord_i[1 ];
750-
749+ if (axisymmetric && Coord_i[1 ] > EPS) {
750+ AD::SetPreaccIn (Coord_i[1 ]);
751+ diverg += V_i[idx.Velocity () + 1 ] / Coord_i[1 ];
752+ }
751753
752754 /* --- If using UQ methodolgy, calculate production using perturbed Reynolds stress matrix ---*/
753755
You can’t perform that action at this time.
0 commit comments