diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-13 18:29:26 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-13 18:29:26 +0100 |
| commit | 521f37e04d698b6c2eaff2ae59fd6e13377316a9 (patch) | |
| tree | 869a718eaa3c9fa307fc5c9129b5140b42b8af52 /examples/particles_gpu | |
| parent | f03b3612c269eb65161d8d4355f85c4c53fac0de (diff) | |
| download | libs-lbm-521f37e04d698b6c2eaff2ae59fd6e13377316a9.tar.gz | |
Reworking elements
Diffstat (limited to 'examples/particles_gpu')
| -rw-r--r-- | examples/particles_gpu/.nix/derivation.nix | 4 | ||||
| -rw-r--r-- | examples/particles_gpu/particles_gpu.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/particles_gpu/.nix/derivation.nix b/examples/particles_gpu/.nix/derivation.nix index 227132f..6ab8825 100644 --- a/examples/particles_gpu/.nix/derivation.nix +++ b/examples/particles_gpu/.nix/derivation.nix @@ -6,7 +6,7 @@ , python3 , pname , version -, kel-lbm +, kel , adaptive-cpp }: @@ -27,7 +27,7 @@ stdenv.mkDerivation { forstio.codec forstio.codec-unit forstio.codec-json - kel-lbm.core + kel.lbm.core adaptive-cpp ]; diff --git a/examples/particles_gpu/particles_gpu.cpp b/examples/particles_gpu/particles_gpu.cpp index 9697ac6..dfd5af3 100644 --- a/examples/particles_gpu/particles_gpu.cpp +++ b/examples/particles_gpu/particles_gpu.cpp @@ -2,7 +2,7 @@ #include <AdaptiveCpp/sycl/sycl.hpp> -#include <kel/lbm/particle/geometry/circle.hpp> +#include <kel/lbm/particle/particle.hpp> #include <iostream> namespace kel{ @@ -30,9 +30,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ auto& pos = body.template get<"position">(); auto& old_pos = body.template get<"position_old">(); auto& acceleration = body.template get<"acceleration">(); - auto& p_size = part.template get<"size">(); auto& p_rad = part.template get<"collision">().template get<"radius">(); - p_size = {0.4f}; p_rad = {0.4f}; if(j.get() % 2u == 0) acceleration.at({{1u}}) = {-9.81}; |
