diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-09 16:49:12 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-09 16:49:12 +0100 |
| commit | 5fee9c698f5f1ebe6ef8bf07f5a75e04dab92681 (patch) | |
| tree | 8c3adef346837c54fa2618e276708e4a8b3bea4d /lib/core/c++/hlbm.hpp | |
| parent | 08d1d887e47ddbd61236c36193b3ef304e69fc0b (diff) | |
| download | libs-lbm-5fee9c698f5f1ebe6ef8bf07f5a75e04dab92681.tar.gz | |
Add rar as dep and implement collision
Diffstat (limited to 'lib/core/c++/hlbm.hpp')
| -rw-r--r-- | lib/core/c++/hlbm.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 1c665ce..f8f0118 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -13,11 +13,19 @@ struct HLBM {}; /** * HLBM collision operator for LBM */ -template<typename T, typename Descriptor> +template<typename T, typename Descriptor, typename Encode> class component<T, Descriptor, cmpt::HLBM> { private: public: component() = default; + + template<typename CellFieldSchema, typename MacroFieldSchema> + void apply(const saw::data<CellFieldSchema, Encode>& field, const saw::data<MacroFieldSchema,Encode>& macros, saw::data<sch::FixedArray<sch::UInt64,Descriptor::D>> index, saw::data<sch::UInt64> time_step) const { + + bool is_even = ((time_step.get() % 2) == 0); + + + } }; } |
