diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-10 15:29:40 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-10 15:29:40 +0200 |
commit | 461022ee5135a3bfcca4659cf73fadccc0594d3f (patch) | |
tree | b81ab7f5952bcbc9dc05feb8186efc2cb0eb3bdb /examples/cavity_2d_gpu/cavity_2d_gpu.cpp | |
parent | 3c2778f440a48ec809b6c9d176c393cbefbee69d (diff) |
Moving towards gpu
Diffstat (limited to 'examples/cavity_2d_gpu/cavity_2d_gpu.cpp')
-rw-r--r-- | examples/cavity_2d_gpu/cavity_2d_gpu.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp index a72cc6a..dc022a1 100644 --- a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp +++ b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp @@ -1,9 +1,4 @@ -#include "../c++/descriptor.hpp" -#include "../c++/macroscopic.hpp" -#include "../c++/lbm.hpp" -#include "../c++/component.hpp" -#include "../c++/collision.hpp" -#include "../c++/boundary.hpp" +#include <kel/lbm/lbm.hpp> #include <forstio/codec/data.hpp> // #include <forstio/remote/ @@ -27,14 +22,13 @@ using namespace saw::schema; * Q factor */ using T = Float32; -using D2Q5 = Descriptor<2u,5u>; using D2Q9 = Descriptor<2u,9u>; template<typename Desc> using DfCell = Cell<T, Desc, 0u, 0u, 1u>; template<typename Desc> -using CellInfo = Cell<UInt8, D2Q9, 1u, 0u, 0u>; +using CellInfo = Cell<UInt8, Desc, 1u, 0u, 0u>; /** * Basic type for simulation @@ -217,11 +211,11 @@ void lbm_step( switch(info({0u}).get()){ case 1u: { - coll.apply(latt, index, time_step); + bb.apply(latt, index, time_step); break; } case 2u: { - bb.apply(latt, index, time_step); + coll.apply(latt, index, time_step); break; } default: |