From 25a1c2485c5187c61a8efc9f5b62d4d942124d47 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 21 Jul 2026 23:43:20 +0200 Subject: Dangling --- poc/triangle_stream/common.hpp | 46 +++++++++++++++++++++++++++++++++++++++++ poc/triangle_stream/init.hpp | 13 ++++++++++++ poc/triangle_stream/sim.cpp | 47 +----------------------------------------- poc/triangle_stream/step.hpp | 8 +++++++ 4 files changed, 68 insertions(+), 46 deletions(-) create mode 100644 poc/triangle_stream/common.hpp create mode 100644 poc/triangle_stream/init.hpp create mode 100644 poc/triangle_stream/step.hpp (limited to 'poc/triangle_stream') diff --git a/poc/triangle_stream/common.hpp b/poc/triangle_stream/common.hpp new file mode 100644 index 0000000..927f8f8 --- /dev/null +++ b/poc/triangle_stream/common.hpp @@ -0,0 +1,46 @@ +#pragma once + +#include + +namespace kel { +namespace lbm { + +constexpr uint64_t dim_y = 256ul; +constexpr uint64_t dim_x = dim_y * 20ul; + +namespace sch { +using namespace saw::schema; + +using InfoChunk = Chunk; + +template +using DfChunk = Chunk, 1u, dim_x, dim_y>; + +template +using ScalarChunk = Chunk, 0u, dim_x, dim_y>; + +template +using VectorChunk = Chunk, 0u, dim_x, dim_y>; + +template +using ChunkStruct = Struct< + Member, + Member, "dfs">, + Member, "dfs_old"> +>; + +template +using VelChunk = Chunk, 0u, dim_x, dim_y>; + +template +using RhoChunk = Chunk, 0u, dim_x, dim_y>; + +template +using MacroStruct = Struct< + Member, "velocity">, + Member, "density"> +>; +} + +} +} diff --git a/poc/triangle_stream/init.hpp b/poc/triangle_stream/init.hpp new file mode 100644 index 0000000..532f08c --- /dev/null +++ b/poc/triangle_stream/init.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "common.hpp" + +namespace kel { +namespace lbm { + +template +void init(){ +} + +} +} diff --git a/poc/triangle_stream/sim.cpp b/poc/triangle_stream/sim.cpp index 36986e4..b2121ee 100644 --- a/poc/triangle_stream/sim.cpp +++ b/poc/triangle_stream/sim.cpp @@ -1,53 +1,8 @@ -#include +#include "common.hpp" namespace kel { namespace lbm { -constexpr uint64_t dim_y = 256ul; -constexpr uint64_t dim_x = dim_y * 20ul; - -namespace sch { -using namespace saw::schema; - -using InfoChunk = Chunk; - -template -using DfChunk = Chunk, 1u, dim_x, dim_y>; - -template -using ScalarChunk = Chunk, 0u, dim_x, dim_y>; - -template -using VectorChunk = Chunk, 0u, dim_x, dim_y>; - -template -using ChunkStruct = Struct< - Member, - Member, "dfs">, - Member, "dfs_old"> ->; - -template -using VelChunk = Chunk, 0u, dim_x, dim_y>; - -template -using RhoChunk = Chunk, 0u, dim_x, dim_y>; - -template -using MacroStruct = Struct< - Member, "velocity">, - Member, "density"> ->; - -//template -//using ParticleArray = Array< -// Particle -//>; -} - -template -void init(){ -} template saw::error_or kmain(int argc, char** argv){ diff --git a/poc/triangle_stream/step.hpp b/poc/triangle_stream/step.hpp new file mode 100644 index 0000000..e10c4db --- /dev/null +++ b/poc/triangle_stream/step.hpp @@ -0,0 +1,8 @@ +#pragma once + +#include "schema.hpp" + +namespace kel { +namespace lbm { +} +} -- cgit v1.2.3