diff options
| -rw-r--r-- | lib/core/c++/hlbm.hpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 7af4f7e..196de73 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -7,7 +7,7 @@ namespace kel { namespace lbm { namespace cmpt { -struct HLBM {}; +struct Hlbm {}; struct HlbmParticle {}; } @@ -15,7 +15,7 @@ struct HlbmParticle {}; * HLBM collision operator for LBM */ template<typename T, typename Descriptor, typename Encode> -class component<T, Descriptor, cmpt::HLBM, Encode> final { +class component<T, Descriptor, cmpt::Hlbm, Encode> final { private: typename saw::native_data_type<T>::type relaxation_; saw::data<T> frequency_; @@ -73,20 +73,13 @@ private: saw::data<T> frequency_; public: - template<typename CellFieldSchema, typename MacroFieldSchema> + template<typename CellFieldSchema, typename MacroFieldSchema, typename ParticleSchema> void apply(const saw::data<CellFieldSchema, Encode>& field, const saw::data<MacroFieldSchema,Encode>& macros, const saw::data<ParticleSchema,Encode>& particles, saw::data<sch::FixedArray<sch::UInt64,1u>> index, saw::data<sch::UInt64> time_step) const { /// Figure out how to access the particle list - auto& p = particles.at(i); + // auto& p = particles.at(i); /// Iterate over the grid bounds - auto& grid = p.template get<"grid">(); - - iterator<Descriptor::D>::apply([&](const auto& index){ - auto& g_i = grid.at(index); - - /// Pick up forces and calculate to rigid body TODO - - }); + // auto& grid = p.template get<"grid">(); } }; |
