summaryrefslogtreecommitdiff
path: root/lib/core/c++/descriptor.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-02-19 18:14:39 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-02-19 18:14:39 +0100
commitabd0dbdca5735a8281e5df27181cc08ec51dae54 (patch)
tree49638e3544c8d1b71c7f1137f9c3ff1ebbf16934 /lib/core/c++/descriptor.hpp
parentf69f6e297a34678de0e1f209d196dd7bef2a4273 (diff)
downloadlibs-lbm-abd0dbdca5735a8281e5df27181cc08ec51dae54.tar.gz
Proper distribution
Diffstat (limited to 'lib/core/c++/descriptor.hpp')
-rw-r--r--lib/core/c++/descriptor.hpp58
1 files changed, 37 insertions, 21 deletions
diff --git a/lib/core/c++/descriptor.hpp b/lib/core/c++/descriptor.hpp
index e38daee..73f0cce 100644
--- a/lib/core/c++/descriptor.hpp
+++ b/lib/core/c++/descriptor.hpp
@@ -54,6 +54,22 @@ struct CellFieldStruct {
template<typename T, typename Desc>
class df_info{};
+/*
+namespace impl {
+template<typename Desc>
+struct df_ct_helper {
+ template<uint64_t i>
+ static constexpr uint64_t apply_i(const std::array<std::array<int32_t,Desc::D>,Desc::Q>& dirs, const std::array<T,Desc::D+1u>& inp){
+ if constexpr ( i < Desc::Q ){
+ for(uint64_t j = 0u; j < Desc::D; ++j){
+ }
+ }
+ return 0u;
+ }
+};
+}
+*/
+
template<typename T>
class df_info<T,sch::Descriptor<1,3>> {
public:
@@ -214,34 +230,34 @@ public:
static constexpr std::array<typename saw::native_data_type<T>::type,Q> weights = {
8./27.,
// 1D
- 2./27.,
- 2./27.,
- // 2D
- 2./27.,
- 1./9.,
1./36.,
1./36.,
+ // 2D
1./36.,
+ 1./54.,
+ 1./54.,
1./36.,
+ 1./54.,
+ 1./54.,
// 3D
- 8./27.,
- 1./9.,
- 1./9.,
- 1./9.,
- 1./9.,
- 1./36.,
- 1./36.,
1./36.,
+ 1./54.,
+ 1./54.,
+ 1./54.,
+ 1./216.,
+ 1./216.,
+ 1./54.,
+ 1./216.,
+ 1./216.,
1./36.,
- 8./27.,
- 1./9.,
- 1./9.,
- 1./9.,
- 1./9.,
- 1./36.,
- 1./36.,
- 1./36.,
- 1./36.
+ 1./54.,
+ 1./54.,
+ 1./54.,
+ 1./216.,
+ 1./216.,
+ 1./54.,
+ 1./216.,
+ 1./216.
};
static constexpr std::array<uint64_t,Q> opposite_index = {