summaryrefslogtreecommitdiff
path: root/examples/particles_gpu
diff options
context:
space:
mode:
Diffstat (limited to 'examples/particles_gpu')
-rw-r--r--examples/particles_gpu/.nix/derivation.nix4
-rw-r--r--examples/particles_gpu/particles_gpu.cpp4
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};