From 81f66f59170a1505f8c793fd6507d8d640075d64 Mon Sep 17 00:00:00 2001 From: Naser Mahfouz Date: Fri, 23 Aug 2024 00:26:04 -0400 Subject: [PATCH] use kokkos norm min v instead of std stuff --- .../src/physics/shoc/impl/shoc_assumed_pdf_compute_s_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/eamxx/src/physics/shoc/impl/shoc_assumed_pdf_compute_s_impl.hpp b/components/eamxx/src/physics/shoc/impl/shoc_assumed_pdf_compute_s_impl.hpp index 70fb386055a..5794e21456f 100644 --- a/components/eamxx/src/physics/shoc/impl/shoc_assumed_pdf_compute_s_impl.hpp +++ b/components/eamxx/src/physics/shoc/impl/shoc_assumed_pdf_compute_s_impl.hpp @@ -45,7 +45,7 @@ void Functions::shoc_assumed_pdf_compute_s( std_s = ekat::sqrt(ekat::max(0, ekat::square(cthl)*thl2 + ekat::square(cqt)*qw2 - 2*cthl*sqrtthl2*cqt*sqrtqw2*r_qwthl)); - const auto std_s_not_small = std_s > std::sqrt(std::numeric_limits::min()) * 100; + const auto std_s_not_small = std_s > std::sqrt(Kokkos::Experimental::norm_min_v) * 100; s = qw1-qs*((1 + beta*qw1)/(1 + beta*qs)); if (std_s_not_small.any()) { C.set(std_s_not_small, sp(0.5)*(1 + ekat::erf(s/(sqrt2*std_s))));