diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-06 16:13:59 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-06 16:13:59 +0200 |
commit | 85af48cace105743f7f509104f5d63506c27dddf (patch) | |
tree | cf804632dffd3ab4ecebe87fb85d54151fd8a785 /c++/examples/cavity_2d.cpp | |
parent | cfa607e1f985ddd941bb34fc4db883eabd1c9b4f (diff) |
c++: Mostly thoughts expressed in code.
A regular apply lambda with info about current cell coordinates and bounds might be interesting.
Diffstat (limited to 'c++/examples/cavity_2d.cpp')
-rw-r--r-- | c++/examples/cavity_2d.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/examples/cavity_2d.cpp b/c++/examples/cavity_2d.cpp index bd108f1..6caaa11 100644 --- a/c++/examples/cavity_2d.cpp +++ b/c++/examples/cavity_2d.cpp @@ -21,16 +21,17 @@ using CellInfo2DType = CellType<UInt8, 2, 5, 1, 0, 0>; /** * Basic type for simulation */ -using CellData = CellData< +using Cell = CellData< Member<DfCell2DType, "dfs">, Member<CellInfo2DType, "info"> >; + } int main(){ using namespace kel::lbm; - saw::data<schema::Array<schema::CellData,2>, saw::encode::Native> lattice{512, 512}; + saw::data<schema::Lattice<schema::Cell,2>>, saw::encode::Native> lattice{512, 512}; return 0; } |