Skip to content

Commit

Permalink
EAMxx: remove generic host-device lambdas in VerticalRemapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Nov 23, 2024
1 parent 14df8d2 commit 84d6d09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/eamxx/src/share/grid/remap/vertical_remapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ extrapolate (const Field& f_src,
auto f_src_v = f_src.get_view<const Real**>();
auto f_tgt_v = f_tgt.get_view< Real**>();
auto policy = ESU::get_default_team_policy(ncols,nlevs_tgt);
auto lambda = KOKKOS_LAMBDA(const auto& team)

using MemberType = typename decltype(policy)::member_type;
auto lambda = KOKKOS_LAMBDA(const MemberType& team)
{
const int icol = team.league_rank();

Expand Down Expand Up @@ -706,7 +708,8 @@ extrapolate (const Field& f_src,
const int ncomps = f_tgt_l.get_vector_dim();
auto policy = ESU::get_default_team_policy(ncols*ncomps,nlevs_tgt);

auto lambda = KOKKOS_LAMBDA(const auto& team)
using MemberType = typename decltype(policy)::member_type;
auto lambda = KOKKOS_LAMBDA(const MemberType& team)
{
const int icol = team.league_rank() / ncomps;
const int icmp = team.league_rank() % ncomps;
Expand Down

0 comments on commit 84d6d09

Please sign in to comment.