Skip to content

Commit

Permalink
Fix for erroneous arithmetic operation with intel -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Nov 22, 2024
1 parent c449260 commit b6288fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void ComputeTurbulentViscosityLES (const MultiFab& Tau11, const MultiFab& Tau22,
- cell_data(i,j,k-1,RhoTheta_comp)/cell_data(i,j,k-1,Rho_comp) )*dzInv;
}
Real E = amrex::max(cell_data(i,j,k,RhoKE_comp)/cell_data(i,j,k,Rho_comp),Real(0.0));
Real stratification = l_abs_g * dtheta_dz * l_inv_theta0; // stratification
volatile Real stratification = l_abs_g * dtheta_dz * l_inv_theta0;
Real length;
if (stratification <= eps) {
length = DeltaMsf;
Expand Down

0 comments on commit b6288fb

Please sign in to comment.