From 521f37e04d698b6c2eaff2ae59fd6e13377316a9 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 13 Jan 2026 18:29:26 +0100 Subject: Reworking elements --- examples/particles_gpu/.nix/derivation.nix | 4 ++-- 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 -#include +#include #include namespace kel{ @@ -30,9 +30,7 @@ saw::error_or 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}; -- cgit v1.2.3