diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-16 21:57:44 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-16 21:57:44 +0200 |
| commit | ad802c003f3081eede724aeaaa5f52410ce8c7d6 (patch) | |
| tree | e011c4b99ecbe1c807603859ab0a74c84ca83745 /modules/core/c++/hlbm.hpp | |
| parent | 879188f7c55b4f8383002b6bf09ef32dd592ab90 (diff) | |
| parent | 8bc7955f5d95521f7c932b9551a3b71a62117630 (diff) | |
| download | libs-lbm-ad802c003f3081eede724aeaaa5f52410ce8c7d6.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'modules/core/c++/hlbm.hpp')
| -rw-r--r-- | modules/core/c++/hlbm.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index 1c625bb..cc35f9b 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -13,6 +13,7 @@ namespace lbm { namespace cmpt { struct HlbmInit {}; struct Hlbm {}; +struct HlbmOneParticle {}; struct HlbmParticle {}; struct HlbmOneParticleMomentumExchange {}; } @@ -101,7 +102,7 @@ public: }; template<typename T, typename Desc, typename Encode> -class component<T, Desc, cmpt::HlbmParticle, Encode> final { +class component<T, Desc, cmpt::HlbmOneParticle, Encode> final { private: /* template<typename CellFieldSchema, typename MacroFieldSchema, typename ParticleSchema, uint64_t i> @@ -124,6 +125,7 @@ public: auto& parts = part_spheroid_group.template get<"particles">(); auto parts_size = parts.meta().at({0u}); + auto& pi = parts.at(index); auto& pirb = pi.template get<"rigid_body">(); auto& pirb_pos = pirb.template get<"position">(); @@ -131,10 +133,8 @@ public: saw::data<sch::FixedArray<sch::UInt64,Desc::D>> start; saw::data<sch::FixedArray<sch::UInt64,Desc::D>> stop; - auto eo_aabb = particle_aabb<typename ParticleSchema::ValueType>::calculate(part_spheroid_group,index,mvel.meta()); + auto eo_aabb = particle_aabb<typename ParticleSchema::ValueType>::calculate(part_spheroid_group,{{0u}},mvel.meta()); if(eo_aabb.is_error()){ - std::cerr<<"Prepping error"<<std::endl; - std::cerr<<eo_aabb.get_error().get_category()<<std::endl; return; } auto& aabb = eo_aabb.get_value(); @@ -146,13 +146,13 @@ public: iterator<Desc::D>::apply([&](const auto& index){ // ask for the d_k value here. // For every value im iterating over I need sth - std::cout<<"Pos: "<<index.at({0u}).get()<<" "<<index.at({1u}).get()<<std::endl; + // std::cout<<"Pos: "<<index.at({0u}).get()<<" "<<index.at({1u}).get()<<std::endl; + + },start,stop); // Check } - - } }; |
