Skip to content

Commit

Permalink
Update turbulence.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruggen authored Mar 8, 2024
1 parent 7be5d87 commit bc39143
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pgen/turbulence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,9 @@ Kokkos::parallel_reduce(
\\ PHILLIP Here we are trying to do a reduction over all the particles that gives the average
\\ N is the number of particles
Kokkos::Add<Real>(correlation_s,correlation_sdot);
correlation_s=correlation_s/N, correlation_sdot=correlation_sdot/N;)

correlation_s=correlation_s, correlation_sdot=correlation_sdot)

tracers_pkg->UpdateParam("correlation_s", correlation_s);
tracers_pkg->UpdateParam("correlation_sdot", correlation_sdot);

} // namespace turbulence

0 comments on commit bc39143

Please sign in to comment.