Skip to content

Commit 4dbcfdd

Browse files
committed
Update C++ too
1 parent 3bed466 commit 4dbcfdd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/eamxx/src/physics/gw/impl/gw_front_gw_sources_impl.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ void Functions<S,D>::gw_front_gw_sources(
3535
// actual source level).
3636
const bool launch_wave = frontgf(finit.kfront) > finit.frontgfc;
3737

38+
const int num_pgwv = 2*pgwv + 1;
3839
if (launch_wave) {
3940
Kokkos::parallel_for(
40-
Kokkos::TeamVectorRange(team, pgwv+1), [&] (const int l) {
41-
const Int negl_idx = pgwv - l;
42-
const Int posl_idx = pgwv + l;
43-
tau(posl_idx, kbot+1) = finit.fav(posl_idx);
44-
tau(negl_idx, kbot+1) = finit.fav(posl_idx); // negative for tau only (not fav?)
41+
Kokkos::TeamVectorRange(team, num_pgwv), [&] (const int l) {
42+
tau(l, kbot+1) = finit.fav(l);
4543
});
4644
}
4745
}

0 commit comments

Comments
 (0)