summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-07-06 16:13:59 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-07-06 16:13:59 +0200
commit85af48cace105743f7f509104f5d63506c27dddf (patch)
treecf804632dffd3ab4ecebe87fb85d54151fd8a785
parentcfa607e1f985ddd941bb34fc4db883eabd1c9b4f (diff)
c++: Mostly thoughts expressed in code.
A regular apply lambda with info about current cell coordinates and bounds might be interesting.
-rw-r--r--c++/examples/cavity_2d.cpp5
-rw-r--r--c++/geometry.h6
2 files changed, 5 insertions, 6 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;
}
diff --git a/c++/geometry.h b/c++/geometry.h
index 575c6a3..39b5f13 100644
--- a/c++/geometry.h
+++ b/c++/geometry.h
@@ -1,10 +1,8 @@
#pragma once
+
+
namespace kel {
namespace lbm {
-template<typename... T>
-class geometry {
-
-};
}
}