summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-10-28 16:02:46 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-10-28 16:02:46 +0100
commit002afda81a9569e2dfa268efb87d1ebd2e2c9ada (patch)
tree8abe74d3c95b4f7bfd87c9d311dd7bb5d2ea9568 /lib
parente31609040915755dc1572c9b478d3b5a49e11e27 (diff)
downloadlibs-lbm-002afda81a9569e2dfa268efb87d1ebd2e2c9ada.tar.gz
Cleaning up examples
Diffstat (limited to 'lib')
-rw-r--r--lib/c++/descriptor.hpp31
1 files changed, 26 insertions, 5 deletions
diff --git a/lib/c++/descriptor.hpp b/lib/c++/descriptor.hpp
index e81738e..18ea440 100644
--- a/lib/c++/descriptor.hpp
+++ b/lib/c++/descriptor.hpp
@@ -164,6 +164,7 @@ public:
static constexpr typename saw::native_data_type<T>::type inv_cs2 = 3.0;
static constexpr typename saw::native_data_type<T>::type cs2 = 1./3.;
};
+
/*
template<typename T>
class df_info<T,sch::Descriptor<3, 27>> {
@@ -177,16 +178,36 @@ public:
{ 0, 0, 0},
{-1, 0, 0},
{ 1, 0, 0},
- { 0,-1, 0},
+ // Expand into 2D
+ { 0, -1, 0},
+ {-1, -1, 0},
+ { 1, -1, 0},
{ 0, 1, 0},
- {-1,-1, 0},
- { 1, 1, 0},
{-1, 1, 0},
- { 1,-1, 0}
+ { 1, 1, 0},
+ // Expand into 3D
+ { 0, 0, -1},
+ {-1, 0, -1},
+ { 1, 0, -1},
+ { 0, -1, -1},
+ {-1, -1, -1},
+ { 1, -1, -1},
+ { 0, 1, -1},
+ {-1, 1, -1},
+ { 1, 1, -1},
+ { 0, 0, 1},
+ {-1, 0, 1},
+ { 1, 0, 1},
+ { 0, -1, 1},
+ {-1, -1, 1},
+ { 1, -1, 1},
+ { 0, 1, 1},
+ {-1, 1, 1},
+ { 1, 1, 1}
}};
static constexpr std::array<typename saw::native_data_type<T>::type,Q> weights = {
- 4./9.,
+ 8./27.,
1./9.,
1./9.,
1./9.,