Skip to content

Commit

Permalink
Fix for GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Sep 25, 2024
1 parent 8e945c5 commit 67817a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ShearStressTransportEquationSystem.C
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ ShearStressTransportEquationSystem::compute_f_one_blending()
const double betaStar = realm_.get_turb_model_constant(TM_betaStar);
const double sigmaWTwo = realm_.get_turb_model_constant(TM_sigmaWTwo);
const double CDkwClip = 1.0e-10; // 2003 SST
const auto gammaEqActive = realm_.solutionOptions_->gammaEqActive_;

const auto& tkeNp1 =
fieldMgr.get_field<double>(tke_->mesh_meta_data_ordinal());
Expand Down Expand Up @@ -623,7 +624,7 @@ ShearStressTransportEquationSystem::compute_f_one_blending()
stk::math::tanh(fArgOne * fArgOne * fArgOne * fArgOne);

// Modifications of f1 blending function for the transition model
if (realm_.solutionOptions_->gammaEqActive_) {
if (gammaEqActive) {
const double f1Orig = fOneBlend.get(mi, 0);
const double ry = rho * minD * stk::math::sqrt(tke) / mu;
const double arg = ry / 120.0;
Expand Down

0 comments on commit 67817a3

Please sign in to comment.