From 1b553907f0d09671f7036a5cca1ff93021582d5c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 3 Mar 2025 11:11:01 +0100 Subject: wip --- c++/examples/cavity_2d.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'c++/examples') diff --git a/c++/examples/cavity_2d.cpp b/c++/examples/cavity_2d.cpp index b681eea..aaf6ba3 100644 --- a/c++/examples/cavity_2d.cpp +++ b/c++/examples/cavity_2d.cpp @@ -18,23 +18,23 @@ namespace schema { * Q factor */ using T = Float32; -using DfCell2DType = CellType; +using DfCell2D = Field; -using CellInfo2DType = CellType; +using CellInfo2D = Field; /** * Basic type for simulation */ using Cell = CellData< - Member, - Member + Member, + Member >; } -template +template struct cell_type { - using Type = schema::CellType; + using Type = schema::Field; }; template @@ -43,8 +43,8 @@ class df_cell_view; /** * Minor helper for the AA-Pull Pattern */ -template -class df_cell_view> { +template +class df_cell_view> { private: std::array::type>*, QN> view_; public: @@ -53,18 +53,18 @@ public: {} }; -template +template class collision { public: typename saw::native_data_type::type relaxation_; public: - std::array::type,Q> equilibrium( + std::array::type,Desc::Q> equilibrium( typename saw::native_data_type::type rho, - std::array::type, D> vel + std::array::type, Desc::D> vel ){ - using dfi = df_info>; + using dfi = df_info; - typename std::array::type,Q> eq; + typename std::array::type,Desc::Q> eq; for(std::size_t i = 0; i < eq.size(); ++i){ auto vel_c = (vel[0]*dfi::directions[i][0] + vel[1]*dfi::directions[i][1]); @@ -81,7 +81,7 @@ public: } void compute_rho_u( - saw::data& dfs, + saw::data& dfs, typename saw::native_data_type::type& rho, std::array::type, 2>& vel ){ -- cgit v1.2.3