diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-14 16:24:56 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-14 16:24:56 +0200 |
commit | 24827b7753fcdc6c837301064afe60e3d1df3145 (patch) | |
tree | 761b39325901c064dac8f2be794a76791c35ca39 /c++/collision.hpp | |
parent | 6aa3606c200b0f5aafb5031ad459c316c25bf1b8 (diff) |
wip. Doing a basic modular design for GPU prep
Diffstat (limited to 'c++/collision.hpp')
-rw-r--r-- | c++/collision.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/c++/collision.hpp b/c++/collision.hpp index 4e16832..87187c2 100644 --- a/c++/collision.hpp +++ b/c++/collision.hpp @@ -9,16 +9,22 @@ namespace cmpt { struct BGK {}; } -template<typename T> -class component<T, cmpt::BGK> { +template<typename T, typename Descriptor> +class component<T, Descriptor, cmpt::BGK> { public: + using Component = cmpt::BGK; + using access = cmpt::access_tuple< - cmpt::access<"dfs", 0, true, true> + cmpt::access<"dfs", 1, true, true, true> >; static constexpr saw::string_literal name = "collision"; static constexpr saw::string_literal after = ""; static constexpr saw::string_literal before = "streaming"; + + void apply(saw::data<sch::CellField>& field){ + + } }; } } |