diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-05 20:04:09 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-05 20:04:09 +0100 |
| commit | 507440cdf786f7a1a83bdf22371f1844910382fb (patch) | |
| tree | 5737d479d581894e8b2ed2bc4c9bb9346cc43a49 /examples/poiseulle_particles_2d_gpu | |
| parent | c4226ba28f0bd783686e6b245f35738dc34cd644 (diff) | |
| download | libs-lbm-507440cdf786f7a1a83bdf22371f1844910382fb.tar.gz | |
Fixed ordering and somehow mistaking the wrongly assumed wrong pressure
boundary
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu')
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/sim.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/sim.cpp b/examples/poiseulle_particles_2d_gpu/sim.cpp index bb81383..644e4d1 100644 --- a/examples/poiseulle_particles_2d_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_gpu/sim.cpp @@ -204,8 +204,8 @@ saw::error_or<void> step( // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ // Need nicer things to handle the flow. I see improvement here - // component<T,Desc,cmpt::BGK, encode::Sycl<saw::encode::Native>> collision{0.6}; - component<T,Desc,cmpt::HLBM,encode::Sycl<saw::encode::Native>> collision{0.65}; + component<T,Desc,cmpt::BGK, encode::Sycl<saw::encode::Native>> collision{0.65}; + // component<T,Desc,cmpt::HLBM,encode::Sycl<saw::encode::Native>> collision{0.65}; // component<T,Desc,cmpt::PSM,encode::Sycl<saw::encode::Native>> collision{0.65}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; @@ -243,14 +243,14 @@ saw::error_or<void> step( bb.apply(fields,index,t_i); break; case 2u: - flow_in.apply(fields,index,t_i); collision.apply(fields,macros,index,t_i); break; case 3u: - flow_out.apply(fields,index,t_i); + flow_in.apply(fields,index,t_i); collision.apply(fields,macros,index,t_i); break; case 4u: + flow_out.apply(fields,index,t_i); collision.apply(fields,macros,index,t_i); break; default: @@ -370,7 +370,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } sycl_q.wait(); - saw::data<sch::UInt64> time_steps{32ul}; + saw::data<sch::UInt64> time_steps{4096ul}; auto& info_f = lsd_view.template get<"info">(); @@ -397,6 +397,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } } + /* { { auto eov = dev.copy_to_host(lbm_sycl_data,*lbm_data_ptr); @@ -411,6 +412,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } } + */ // Stream sycl_q.submit([&](acpp::sycl::handler& h){ component<T,Desc,cmpt::Stream,encode::Sycl<saw::encode::Native>> stream; |
