blob: 1a5454184de437cf56129c330adb55d87daaeb58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
namespace kel {
namespace lbm {
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) {
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);
}
};
}
}
|