diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-16 09:05:08 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-16 09:05:08 +0200 |
| commit | e19b4c91cfc7c370851c73314f54ef3e479b45bc (patch) | |
| tree | f4d727e560f77b416419b14567f9c8f6d9eabb81 | |
| parent | 30ff1caf073b4341fd0614e0974c67a8588c8931 (diff) | |
| download | libs-lbm-e19b4c91cfc7c370851c73314f54ef3e479b45bc.tar.gz | |
Address boundary error
| -rw-r--r-- | default.nix | 2 | ||||
| -rw-r--r-- | examples/settling_cubes_2d_ibm_gpu/sim.cpp | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/default.nix b/default.nix index 0a110b8..6940267 100644 --- a/default.nix +++ b/default.nix @@ -71,7 +71,7 @@ let src = builtins.fetchurl { url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz"; - sha256 = "sha256:0dm4ix3a53zx2ddyalzn33lwgqi6aacpcmlqrz28x11c96s30xyh"; + sha256 = "sha256:17zsz10lj5dgqw3fmassgqlhbwgpd7zznbq8cl0sw1v816w3ca8z"; }; phases = [ "unpackPhase" "installPhase" ]; diff --git a/examples/settling_cubes_2d_ibm_gpu/sim.cpp b/examples/settling_cubes_2d_ibm_gpu/sim.cpp index de40c54..80ba90c 100644 --- a/examples/settling_cubes_2d_ibm_gpu/sim.cpp +++ b/examples/settling_cubes_2d_ibm_gpu/sim.cpp @@ -389,7 +389,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ auto lsdm_view = make_view(lbm_sycl_macro_data); auto lsdp_view = make_view(lbm_sycl_particle_data); - saw::data<sch::UInt64> time_steps{4u*4096ul}; + saw::data<sch::UInt64> time_steps{16u*4096ul}; auto& info_f = lsd_view.template get<"info">(); @@ -402,8 +402,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } sycl_q.wait(); - /* - { + if(i.get()%32u ==0u){ { auto eov = dev.copy_to_host(lbm_sycl_macro_data,*lbm_macro_data_ptr); if(eov.is_error()){ @@ -417,7 +416,6 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } } - */ /* { { |
