From 582dc2aa7b8cc1177804115c6a4ea0b2ed3c0d7a Mon Sep 17 00:00:00 2001 From: mbruggen Date: Fri, 8 Mar 2024 14:46:19 -0800 Subject: [PATCH] Update turbulence.cpp --- src/pgen/turbulence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pgen/turbulence.cpp b/src/pgen/turbulence.cpp index 6b0ea193..3393279b 100644 --- a/src/pgen/turbulence.cpp +++ b/src/pgen/turbulence.cpp @@ -565,7 +565,7 @@ Kokkos::parallel_reduce( Kokkos::Add(correlation_s,correlation_sdot); correlation_s=correlation_s, correlation_sdot=correlation_sdot) - tracers_pkg->UpdateParam("correlation_s", correlation_s); - tracers_pkg->UpdateParam("correlation_sdot", correlation_sdot); + tracers_pkg->UpdateParam("correlation_s", correlation_s/N); + tracers_pkg->UpdateParam("correlation_sdot", correlation_sdot/N); } // namespace turbulence