From 792e3a52a7e0839905837c031a027b917b36a241 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 11 Aug 2026 09:56:17 +0200 Subject: Dangling --- modules/core/c++/hlbm.hpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'modules/core/c++/hlbm.hpp') diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index fc19728..cc21dcf 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -234,43 +234,5 @@ public: } } }; - -template -class component final { -public: - template - void apply(const saw::data& field, const saw::data& macros, saw::data> index, saw::data time_step) const { - // - using dfi = df_info; - bool is_even = ((time_step.get() % 2) == 0); - - auto& dfs_old_f = (is_even) ? field.template get<"dfs_old">() : field.template get<"dfs">(); - auto& dfs = dfs_old_f.at(index); - - saw::data> momentum; - for(uint64_t i = 0u; i < Desc::Q; ++i){ - - saw::data> e_i; - saw::data> n_ind_i; - for(uint64_t k{0u}; k < Desc::D; ++k){ - e_i.at({{k}}) = dfi::directions[i][k]; - n_ind_i.at({k}) = (dfi::directions[i])[k]; - } - - uint64_t i_opp = dfi::opposite_index[i]; - - saw::data dfs_added = dfs.at({i}) - dfs_old_f.at(n_ind_i).at({i_opp}); - saw::data> dfs_added_v; - dfs_added_v.at({}) = dfs_added; - auto ei_dfs = e_i * dfs_added_v; - - momentum = momentum + ei_dfs; - } - auto& force_f = macros.template get<"force">(); - - // Set Force - force_f.at(index) = momentum * macros.template get<"porosity">().at(index); - } -}; } } -- cgit v1.2.3