diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-07 17:52:16 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-07 17:52:16 +0200 |
| commit | c410ddfebd40aedf75d0927a0e6581bf48b5b1c3 (patch) | |
| tree | 3bb1446039e12a8789da211e68d617388d632a7d /examples/cavity_2d_gpu/cavity_2d_gpu.cpp | |
| parent | 8ff7003d3016b9e0295150aa4f91804eb00677fc (diff) | |
| download | libs-lbm-c410ddfebd40aedf75d0927a0e6581bf48b5b1c3.tar.gz | |
Fixing center of mass calculations
Diffstat (limited to 'examples/cavity_2d_gpu/cavity_2d_gpu.cpp')
| -rw-r--r-- | examples/cavity_2d_gpu/cavity_2d_gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp index edb7dd8..cc0a811 100644 --- a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp +++ b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp @@ -185,7 +185,7 @@ void set_initial_conditions(saw::data<kel::lbm::sch::CavityFieldD2Q9>& latt){ } void lbm_step( - saw::data<kel::lbm::sch::CavityFieldD2Q9>& latt, + acpp::sycl::buffer<saw::data<sch::CavityFieldD2Q9>>& latt, bool even_step, uint64_t time_step, acpp::sycl::queue& sycl_q @@ -310,7 +310,7 @@ int main(){ write_vtk_file(vtk_f_name, macros); } - lbm_step(lattice, (i%2u == 0u), i, sycl_q); + lbm_step(df_sycl, (i%2u == 0u), i, sycl_q); } return 0; } |
