diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-09 15:04:50 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-09 15:04:50 +0200 |
commit | 94096362974118f8777da6c0eb4655ea148736b3 (patch) | |
tree | bcc49d545fc44b3bc2800ffa072a85d017e05c57 /c++ | |
parent | e0d16921a2f78355f69ebeec64207f6c0d9fe1a5 (diff) |
Fixed compilation issues
Diffstat (limited to 'c++')
-rw-r--r-- | c++/examples/cavity_2d.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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<schema::FixedArray<schema::Lattice<kel::lbm::schema::Cell,2>>, saw::encode::Native> lattice{dim_x, dim_y}; + saw::data< + schema::FixedArray< + schema::Lattice<kel::lbm::schema::Cell, 2>, 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){ |