diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-25 00:07:23 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-25 00:07:23 +0200 |
| commit | 3bc151904b7388bcd578f3b81fadd69399932900 (patch) | |
| tree | fe589c6dfaa62c89f296cde698e36a060a4b97ed | |
| parent | 34bcca5a8d9234febbed9c11c2c801c3e5d63581 (diff) | |
| download | libs-lbm-3bc151904b7388bcd578f3b81fadd69399932900.tar.gz | |
Dangling
| -rw-r--r-- | examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp | 4 | ||||
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/sim.cpp | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp index f89f5da..9e812e2 100644 --- a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp +++ b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp @@ -214,9 +214,9 @@ saw::error_or<void> step( [&](){ uint64_t target_t_i = 8u; if(t_i.get() < target_t_i){ - return 1.0 + (0.005 / target_t_i) * t_i.get(); + return 1.0 + (0.01 / target_t_i) * t_i.get(); } - return 1.005; + return 1.01; }() }; component<T,Desc,cmpt::ZouHeHorizontal<false>,encode::Sycl<saw::encode::Native>> flow_out{1.0}; diff --git a/examples/poiseulle_particles_2d_gpu/sim.cpp b/examples/poiseulle_particles_2d_gpu/sim.cpp index 47c5daa..865babf 100644 --- a/examples/poiseulle_particles_2d_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_gpu/sim.cpp @@ -21,7 +21,7 @@ using LbmArgs = Args< >; } -template<typename T, typename Desc> +template<typename T, typename Desc, typename Coll> saw::error_or<void> lbm_main(int argc, char** argv){ using namespace kel::lbm; @@ -195,10 +195,17 @@ saw::error_or<void> lbm_main(int argc, char** argv){ return saw::make_void(); } + using FloatT = kel::lbm::sch::Float32; +saw::error_or<void> kmain(int argc, char** argv){ + using namespace kel::lbm; + + // auto eo_args = saw::parse_args< +} + int main(int argc, char** argv){ - auto eov = lbm_main<FloatT,kel::lbm::sch::D2Q9>(argc, argv); + auto eov = lbm_main<FloatT,kel::lbm::sch::D2Q9, >(argc, argv); if(eov.is_error()){ auto& err = eov.get_error(); std::cerr<<"[Error] "<<err.get_category(); |
