diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-06 11:35:41 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-06 11:35:41 +0200 |
| commit | d850778b7897a7dc155253fe8f796b56362d3cca (patch) | |
| tree | 12839bd0382a733562e33bdad02f6211a5a91cff /examples | |
| parent | 95b74577fe5c75e3e8497dc16241b7e6b8d30408 (diff) | |
| download | libs-lbm-d850778b7897a7dc155253fe8f796b56362d3cca.tar.gz | |
Ops
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/one_particle_sedimentation_2d/sim.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/one_particle_sedimentation_2d/sim.cpp b/examples/one_particle_sedimentation_2d/sim.cpp index db730d4..40bae14 100644 --- a/examples/one_particle_sedimentation_2d/sim.cpp +++ b/examples/one_particle_sedimentation_2d/sim.cpp @@ -126,7 +126,9 @@ saw::error_or<void> lbm_main(const saw::data<args::LbmArgs>& args){ auto lsdm_view = make_view(lbm_sycl_macro_data); auto lsdp_view = make_view(lbm_sycl_particle_data); - saw::data<sch::UInt64> time_steps{1024ul * 1024ul * 64ul}; + + saw::data<sch::UInt64> time_steps{conv.second_si_to_lbm({1.0f}).handle().template cast_to<sch::UInt64>() + 1u}; + std::cout<<"Steps for 1 sec: "<<time_steps.get()<<std::endl; auto& info_f = lsd_view.template get<"info">(); |
