diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-19 18:14:39 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-19 18:14:39 +0100 |
| commit | abd0dbdca5735a8281e5df27181cc08ec51dae54 (patch) | |
| tree | 49638e3544c8d1b71c7f1137f9c3ff1ebbf16934 /lib/core/c++/collision.hpp | |
| parent | f69f6e297a34678de0e1f209d196dd7bef2a4273 (diff) | |
| download | libs-lbm-abd0dbdca5735a8281e5df27181cc08ec51dae54.tar.gz | |
Proper distribution
Diffstat (limited to 'lib/core/c++/collision.hpp')
| -rw-r--r-- | lib/core/c++/collision.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/core/c++/collision.hpp b/lib/core/c++/collision.hpp index 349833f..f259c9f 100644 --- a/lib/core/c++/collision.hpp +++ b/lib/core/c++/collision.hpp @@ -18,12 +18,17 @@ struct BGKGuo {}; template<typename T, typename Descriptor, typename Encode> class component<T, Descriptor, cmpt::BGK, Encode> { private: - typename saw::native_data_type<T>::type relaxation_; + saw::data<T> relaxation_; saw::data<T> frequency_; public: component(typename saw::native_data_type<T>::type relaxation__): + relaxation_{{relaxation__}}, + frequency_{saw::data<T>{1} / relaxation_} + {} + + component(const saw::data<T>& relaxation__): relaxation_{relaxation__}, - frequency_{typename saw::native_data_type<T>::type(1) / relaxation_} + frequency_{saw::data<T>{1} / relaxation_} {} using Component = cmpt::BGK; |
