diff options
Diffstat (limited to 'c++/examples/cavity_2d.cpp')
-rw-r--r-- | c++/examples/cavity_2d.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/c++/examples/cavity_2d.cpp b/c++/examples/cavity_2d.cpp index 0f54f1c..bd108f1 100644 --- a/c++/examples/cavity_2d.cpp +++ b/c++/examples/cavity_2d.cpp @@ -14,20 +14,23 @@ using namespace kel::lbm::schema; * D factor * Q factor */ -using DfCellType = CellType<Float32, 2, 5, 0, 0, 1>; +using DfCell2DType = CellType<Float32, 2, 5, 0, 0, 1>; -using CellInfoType = CellType<UInt8, 2, 5, 1, 0, 0>; +using CellInfo2DType = CellType<UInt8, 2, 5, 1, 0, 0>; +/** + * Basic type for simulation + */ using CellData = CellData< - Member<DfCellType, "dfs">, - Member<CellInfoType, "info"> + Member<DfCell2DType, "dfs">, + Member<CellInfo2DType, "info"> >; } int main(){ using namespace kel::lbm; - saw::data<schema::CellData, saw::encode::Native> lattice{512, 512}; + saw::data<schema::Array<schema::CellData,2>, saw::encode::Native> lattice{512, 512}; return 0; } |