From b0a68aba927aaafc97816d18b50b219a595b4dd2 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 18 Apr 2025 16:35:52 +0200 Subject: Compileable state --- c++/descriptor.hpp | 3 +++ c++/macroscopic.hpp | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'c++') diff --git a/c++/descriptor.hpp b/c++/descriptor.hpp index aa8c943..b1ee5b1 100644 --- a/c++/descriptor.hpp +++ b/c++/descriptor.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include namespace kel { namespace lbm { @@ -164,10 +165,12 @@ public: factory_struct_{inp} {} + /* template constexpr auto require() const noexcept { return {factory_struct_.add_maybe()}; } + */ }; } diff --git a/c++/macroscopic.hpp b/c++/macroscopic.hpp index 608b89e..43c727b 100644 --- a/c++/macroscopic.hpp +++ b/c++/macroscopic.hpp @@ -1,18 +1,20 @@ #pragma once +#include "descriptor.hpp" + namespace kel { namespace lbm { /** * Calculate the macroscopic variables rho and u in Lattice Units. */ -template +template void compute_rho_u ( - const saw::data>& dfs, - typename saw::native_data_type::type& rho, - std::array::type, 2>& vel + saw::data>& dfs, + typename saw::native_data_type::type& rho, + std::array::type, 2>& vel ) { - using dfi = df_info; + using dfi = df_info; rho = 0; std::fill(vel.begin(), vel.end(), 0); -- cgit v1.2.3