From 94096362974118f8777da6c0eb4655ea148736b3 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 9 Apr 2024 15:04:50 +0200 Subject: Fixed compilation issues --- c++/examples/cavity_2d.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'c++/examples') diff --git a/c++/examples/cavity_2d.cpp b/c++/examples/cavity_2d.cpp index f682523..b681eea 100644 --- a/c++/examples/cavity_2d.cpp +++ b/c++/examples/cavity_2d.cpp @@ -164,7 +164,15 @@ void lbm_step( int main(){ using namespace kel::lbm; - saw::data>, saw::encode::Native> lattice{dim_x, dim_y}; + saw::data< + schema::FixedArray< + schema::Lattice, 2 + > + ,saw::encode::Native + > lattices; //{dim_x, dim_y}; + for(uint64_t i = 0; i < lattices.get_dim_size<0u>(); ++i){ + lattices.at(i) = {dim_x, dim_y}; + } /** * Set meta information describing what this cell is @@ -191,7 +199,7 @@ int main(){ }else{ std::cout<<"\n"; } - }, lattice.at(0)); + }, lattices.at(0)); std::cout<<"\n"; apply_for_cells([](auto& cell, std::size_t i, std::size_t j){ -- cgit v1.2.3