From b6288fbb89bbdd9d20fce6ab4bbbddf46a4df422 Mon Sep 17 00:00:00 2001 From: Eliot Quon Date: Thu, 21 Nov 2024 21:55:29 -0700 Subject: [PATCH] Fix for erroneous arithmetic operation with intel -O2 --- Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp b/Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp index 9e23f43d4..c07c7ab3e 100644 --- a/Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp +++ b/Source/Diffusion/ERF_ComputeTurbulentViscosity.cpp @@ -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;