diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-14 15:57:12 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-14 15:57:12 +0200 |
commit | 0e0da21fdadb2b924d42bf21ac6c881cf1abcf63 (patch) | |
tree | 253982d7be214993f1a61a564271018d64b15265 /c++/util.hpp | |
parent | a1afab28506cbb52da8229b84a146fbf30c4a4ce (diff) |
End of day, attempts at utilization
Diffstat (limited to 'c++/util.hpp')
-rw-r--r-- | c++/util.hpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/c++/util.hpp b/c++/util.hpp index a215cc1..1a54541 100644 --- a/c++/util.hpp +++ b/c++/util.hpp @@ -2,11 +2,22 @@ namespace kel { namespace lbm { -template<typename T, typename Descriptor> +template<typename T, typename Descriptor, typename CellFieldSchema> struct is_neighbour { template<typename CellFieldSchema> - static bool operator()(saw::data<CellFieldSchema>& latt, saw::data<sch::FixedArray<sch::UInt64, Descriptor::D>& index, saw::data<sch::UInt64> range) { + static bool operator()(saw::data<CellFieldSchema>& latt, saw::data<sch::FixedArray<sch::UInt64, Descriptor::D>& index) { using dfi = df_info<T,Descriptor>; + + if(index.at({0u}).get() == 0u or index.at({1u}).get() == 0u){ + return false; + } + + for(saw::data<sch::UInt64> k{0u}; k.get() < Descriptor::Q; ++k){ + // TODO + saw::data<sch::FixedArray<sch::UInt64,2u>> + } + + auto& cell = latt(index); } }; } |