Skip to content

Commit 7753a99

Browse files
committed
Fix preaccumulation error.
1 parent b69abb5 commit 7753a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,12 @@ void CFVMFlowSolverBase<V, R>::ComputeVorticityAndStrainMag(const CConfig& confi
671671

672672
StrainMag(iPoint) = sqrt(2.0*StrainMag(iPoint));
673673
AD::SetPreaccOut(StrainMag(iPoint));
674+
AD::EndPreacc();
674675

675676
/*--- Max is not differentiable, so we not register them for preacc. ---*/
676677
strainMax = max(strainMax, StrainMag(iPoint));
677678
omegaMax = max(omegaMax, GeometryToolbox::Norm(3, Vorticity));
678679

679-
AD::EndPreacc();
680680
}
681681
END_SU2_OMP_FOR
682682

0 commit comments

Comments
 (0)