summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-04-30 13:29:32 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-04-30 13:29:32 +0200
commit9195e0017ef8ac6cceec11ca082d4b688d9a55c9 (patch)
tree5afa12486b53bd86cd901398cad1bbfd48714077 /tests
parent0786c15aa982d37d12ff9fdc40c02c8b0a65c917 (diff)
Compiling vtk generic write
Diffstat (limited to 'tests')
-rw-r--r--tests/vtk_write.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/vtk_write.cpp b/tests/vtk_write.cpp
new file mode 100644
index 0000000..7aea628
--- /dev/null
+++ b/tests/vtk_write.cpp
@@ -0,0 +1,38 @@
+#include <forstio/test/suite.hpp>
+
+#include <iostream>
+#include "../c++/write_vtk.hpp"
+
+
+namespace {
+namespace sch {
+using namespace kel::lbm::sch;
+
+using T = Float64;
+using D2Q5 = Descriptor<2,5>;
+using D2Q9 = Descriptor<2,9>;
+
+template<typename Desc>
+using DfCell = Cell<T, Desc, 0, 0, 1>;
+
+template<typename Desc>
+using CellInfo = Cell<UInt8, D2Q9, 1, 0, 0>;
+
+/**
+ * Basic type for simulation
+ */
+template<typename Desc>
+using CellStruct = Struct<
+ Member<DfCell<Desc>, "dfs">,
+ Member<DfCell<Desc>, "dfs_old">,
+ Member<CellInfo<Desc>, "info">
+>;
+
+}
+
+SAW_TEST("VTK Write test example"){
+ using namespace kel;
+
+ // using Type = typename parameter_pack_type<i,T...>::type;
+}
+}