Skip to content

Commit

Permalink
Resolve "Remove explicit usage of Kokkos::Serial when possible"
Browse files Browse the repository at this point in the history
Closes #189

See merge request gysela-developpers/gyselalibxx!408

--------------------------------------------
  • Loading branch information
EmilyBourne committed Mar 21, 2024
1 parent dcdba00 commit 80f4a12
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/geometryRTheta/advection/spline_foot_finder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class SplineFootFinder : public IFootFinder


// Solve the characteristic equation
m_time_stepper.update(Kokkos::Serial(), feet, dt, dy, update_function);
m_time_stepper.update(Kokkos::DefaultHostExecutionSpace(), feet, dt, dy, update_function);

is_unified(feet);
}
Expand Down
2 changes: 1 addition & 1 deletion src/geometryRTheta/time_solver/bsl_predcorr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class BslPredCorrRP : public ITimeSolverRP
start_time = std::chrono::system_clock::now();
for (int iter(0); iter < steps; ++iter) {
time_stepper
.update(Kokkos::Serial(),
.update(Kokkos::DefaultHostExecutionSpace(),
allfdistribu,
dt,
define_advection_field,
Expand Down
2 changes: 1 addition & 1 deletion tests/timestepper/crank_nicolson_2d_mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ TEST(CrankNicolson2DFixtureMixedTypes, CrankNicolson2DOrderMixedTypes)

for (int i(0); i < Nt; ++i) {
crank_nicolson.update(
Kokkos::Serial(),
Kokkos::DefaultHostExecutionSpace(),
vals,
dt,
[yc, xc, &dom, omega](AdvectionFieldSpan dy, ChunkView<CoordXY, IDomainXY> y) {
Expand Down
2 changes: 1 addition & 1 deletion tests/timestepper/euler_2d_mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ TEST(Euler2DFixtureMixedTypes, Euler2DOrderMixedTypes)

for (int i(0); i < Nt; ++i) {
euler.update(
Kokkos::Serial(),
Kokkos::DefaultHostExecutionSpace(),
vals,
dt,
[yc, xc, &dom, omega](AdvectionFieldSpan dy, ChunkView<CoordXY, IDomainXY> y) {
Expand Down
2 changes: 1 addition & 1 deletion tests/timestepper/runge_kutta_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ TYPED_TEST(RungeKutta2DFixture, RungeKutta2DOrder)

for (int i(0); i < Nt; ++i) {
runge_kutta.update(
Kokkos::Serial(),
Kokkos::DefaultHostExecutionSpace(),
vals,
dt,
[yc, xc, &dom, omega](AdvectionFieldSpan dy, AdvectionFieldView y) {
Expand Down
2 changes: 1 addition & 1 deletion tests/timestepper/runge_kutta_2d_mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ TYPED_TEST(RungeKutta2DFixtureMixedTypes, RungeKutta2DOrderMixedTypes)

for (int i(0); i < Nt; ++i) {
runge_kutta.update(
Kokkos::Serial(),
Kokkos::DefaultHostExecutionSpace(),
vals,
dt,
[yc, xc, &dom, omega](AdvectionFieldSpan dy, ChunkView<CoordXY, IDomainXY> y) {
Expand Down

0 comments on commit 80f4a12

Please sign in to comment.