summaryrefslogtreecommitdiff
path: root/examples/particles_gpu/particles_gpu.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-01-07 11:21:49 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-01-07 11:21:49 +0100
commite9fc9f329589feb902fd1c982d9fa55bd69d81ea (patch)
tree2cf9a04cd666c6eb596d9c3523e32e857f06ea0d /examples/particles_gpu/particles_gpu.cpp
parentf5159d60fe3a0dcbdc5613658d9ade274ab88ee1 (diff)
downloadlibs-lbm-e9fc9f329589feb902fd1c982d9fa55bd69d81ea.tar.gz
Renaming folder
Diffstat (limited to 'examples/particles_gpu/particles_gpu.cpp')
-rw-r--r--examples/particles_gpu/particles_gpu.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/examples/particles_gpu/particles_gpu.cpp b/examples/particles_gpu/particles_gpu.cpp
new file mode 100644
index 0000000..2104a88
--- /dev/null
+++ b/examples/particles_gpu/particles_gpu.cpp
@@ -0,0 +1,42 @@
+#include <kel/lbm/lbm.hpp>
+#include <AdaptiveCpp/sycl/sycl.hpp>
+
+
+#include <kel/lbm/particle/geometry/circle.hpp>
+#include <iostream>
+
+namespace kel{
+namespace lbm {
+namespace sch {
+using namespace saw::schema;
+}
+}
+
+saw::error_or<void> lbm_main(int argc, char** argv){
+ (void) argc;
+ (void) argv;
+
+ using namespace lbm;
+ using namespace acpp;
+
+ saw::data<sch::Array<sch::Particle<sch::Float32,2u>>> particles{256u};
+
+ return saw::make_void();
+}
+}
+
+int main(int argc, char** argv){
+ auto eov = kel::lbm_main(argc, argv);
+ if(eov.is_error()){
+ auto& err = eov.get_error();
+ std::cerr<<"[Error] "<<err.get_category();
+ auto err_msg = err.get_message();
+ if(err_msg.size() > 0u){
+ std::cerr<<" - "<<err_msg;
+ }
+ std::cerr<<std::endl;
+ return err.get_id();
+ }
+
+ return 0;
+}