Skip to content

Commit bd40210

Browse files
committed
sa-neg fix
1 parent a7f6b47 commit bd40210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ struct Neg {
418418

419419
static void ComputeDestruction(const su2double& nue, const CSAVariables& var, su2double& destruction,
420420
su2double& jacobian) {
421-
const su2double dD_dnu = var.cw1 * nue / var.dist_i_2;
421+
/*--- The destruction when nue < 0 is added instead of the usual subtraction, hence the negative sign. ---*/
422+
const su2double dD_dnu = -var.cw1 * nue / var.dist_i_2;
422423
destruction = dD_dnu * nue;
423424
jacobian -= 2 * dD_dnu;
424425
}

0 commit comments

Comments
 (0)