#include "../descriptor.h" #include namespace kel { namespace lbm { namespace schema { /** * Basic distribution function * Base type * D * Q * Scalar factor * D factor * Q factor */ using DfCell2DType = CellType; using CellInfo2DType = CellType; /** * Basic type for simulation */ using Cell = CellData< Member, Member >; } } } template void apply_for_cells(Func&& func, saw::data, saw::encode::Native>& dat ){ for(std::size_t i = 0; i < dat.get_dim_size(0); ++i){ for(std::size_t j = 0; j < dat.get_dim_size(1); ++j){ func(dat.at(i,j), i, j); } } } int main(){ using namespace kel::lbm; saw::data, saw::encode::Native> lattice{512, 512}; apply_for_cells([](auto& cell, std::size_t i, std::size_t j){ // cell.get<"info">(); }, lattice); return 0; }