@@ -64,15 +64,15 @@ apply_vertical_interpolation(const Field& f_src, const Field& f_tgt,
6464
6565 const auto policy =
6666 ekat::ExeSpaceUtils<KT::ExeSpace>::get_default_team_policy (ncols, nlevs_tgt);
67-
67+ using Team = Kokkos::TeamPolicy<KT::ExeSpace>::member_type;
6868 if (m_vremap_type== MAM4_PSRef) {
6969
7070 const int unit_factor_pin=1 ;
7171 const auto p_src_c = p_src.get_view <const Real **>();
7272
7373 Kokkos::parallel_for (
7474 " vert_interp" , policy,
75- KOKKOS_LAMBDA (const auto &team) {
75+ KOKKOS_LAMBDA (const Team &team) {
7676 const int icol = team.league_rank ();
7777 const auto pin_at_icol = ekat::subview (p_src_c, icol);
7878 const auto pmid_at_icol = ekat::subview (p_tgt_c, icol);
@@ -90,7 +90,7 @@ apply_vertical_interpolation(const Field& f_src, const Field& f_tgt,
9090
9191 Kokkos::parallel_for (
9292 " vert_interp" , policy,
93- KOKKOS_LAMBDA (const auto &team) {
93+ KOKKOS_LAMBDA (const Team &team) {
9494 const int icol = team.league_rank ();
9595 const auto pmid_at_icol = ekat::subview (p_tgt_c, icol);
9696 const auto datain_at_icol = ekat::subview (datain, icol);
@@ -108,7 +108,7 @@ apply_vertical_interpolation(const Field& f_src, const Field& f_tgt,
108108 constexpr Real m2km = 1e-3 ;
109109 Kokkos::parallel_for (
110110 " tracer_vert_interp_loop" , policy,
111- KOKKOS_LAMBDA (const auto &team) {
111+ KOKKOS_LAMBDA (const Team &team) {
112112 const int icol = team.league_rank ();
113113 const auto datain_at_icol = ekat::subview (datain, icol);
114114 const auto dataout_at_icol = ekat::subview (dataout, icol);
0 commit comments