Skip to content

Commit

Permalink
Merge branch '285-implicit-capture-of-this-in-extended-lambda-express…
Browse files Browse the repository at this point in the history
…ion' into 'main'

Resolve "Implicit capture of 'this' in extended lambda expression"

Closes #285

See merge request gysela-developpers/gyselalibxx!691
  • Loading branch information
tpadioleau committed Sep 23, 2024
1 parent 994aa0b commit 823c6ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class KelvinHelmholtzInstabilityInitialization
void operator()(DFieldXY allfdistribu, DFieldXY allfdistribu_equilibrium)
{
IdxRangeXY const idx_range = get_idx_range(allfdistribu);
double const epsilon_proxy = m_epsilon;
double const mode_k_proxy = m_mode_k;

ddc::parallel_for_each(
Kokkos::DefaultExecutionSpace(),
Expand All @@ -57,7 +59,7 @@ class KelvinHelmholtzInstabilityInitialization
double const y = CoordY(coord_xy);
allfdistribu_equilibrium(i_xy) = Kokkos::sin(y);
allfdistribu(i_xy) = allfdistribu_equilibrium(i_xy)
+ m_epsilon * Kokkos::cos(m_mode_k * x);
+ epsilon_proxy * Kokkos::cos(mode_k_proxy * x);
});
};
};

0 comments on commit 823c6ab

Please sign in to comment.