diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-21 23:42:52 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-21 23:42:52 +0200 |
| commit | 484fc61e2472c2a3752168221bd85510e9b7c53f (patch) | |
| tree | 5d055cd8583fad7ffc8a8a7a5c0505fb5a69e579 /examples/moving_poiseulle_particles_2d_hlbm_gpu | |
| parent | 5940a86f4c5ff39e6a1dbd5a33bf0782e30d58c0 (diff) | |
| download | libs-lbm-484fc61e2472c2a3752168221bd85510e9b7c53f.tar.gz | |
Dangling
Diffstat (limited to 'examples/moving_poiseulle_particles_2d_hlbm_gpu')
| -rw-r--r-- | examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp index a41d2b7..b2061f9 100644 --- a/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp +++ b/examples/moving_poiseulle_particles_2d_hlbm_gpu/sim.cpp @@ -155,7 +155,14 @@ saw::error_or<void> setup_initial_conditions( auto& rbp = rb.template get<"position">(); rbp.at({{0u}}) = 0.25 * dim_x; rbp.at({{1u}}) = 0.5 * dim_y; - auto& rbp_old = rbp; + rb.template get<"position_old">() = rbp; + saw::data<sch::Vector<T,Desc::D>> zero; + zero.at({{0u}}) = 0.0f; + zero.at({{1u}}) = 0.0f; + rb.template get<"acceleration">() = zero; + rb.template get<"rotation">() = {}; + rb.template get<"rotation_old">() = {}; + rb.template get<"angular_acceleration">() = {}; } return saw::make_void(); |
