diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-11 14:07:27 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-11 14:07:27 +0200 |
| commit | 4c9e43a42c15ce93ffded21dfcaa171f63d20d69 (patch) | |
| tree | 13a8e06228070a1989be24ba09130a5ccbafeb45 /examples/poiseulle_particles_2d_gpu/init.hpp | |
| parent | ad0efe4d0e43a2a4f122677578107c2a0398e53f (diff) | |
| download | libs-lbm-4c9e43a42c15ce93ffded21dfcaa171f63d20d69.tar.gz | |
Fixing deduction issues from constexpr values
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu/init.hpp')
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/init.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/init.hpp b/examples/poiseulle_particles_2d_gpu/init.hpp index 70d59fc..617b296 100644 --- a/examples/poiseulle_particles_2d_gpu/init.hpp +++ b/examples/poiseulle_particles_2d_gpu/init.hpp @@ -7,10 +7,13 @@ namespace lbm { template<typename T, typename Desc> saw::error_or<void> setup_initial_conditions( + const converter<T>& conv, saw::data<sch::ChunkStruct<T,Desc>>& fields, saw::data<sch::MacroStruct<T,Desc>>& macros, saw::data<sch::ParticleSpheroidGroup<T,Desc>>& particles ){ + (void) conv; + auto& info_f = fields.template get<"info">(); auto& porous_f = macros.template get<"porosity">(); // Set everything as walls @@ -110,9 +113,11 @@ saw::error_or<void> setup_initial_conditions( ); { + saw::data<sch::Scalar<T>> radius_p; + radius_p.at({}).set(2); saw::data<sch::Scalar<T>> dense_p; dense_p.at({}).set(1); - particles = create_spheroid_particle_group<T,Desc::D,2.0f>(dense_p, {{16u}}); + particles = create_spheroid_particle_group<T,Desc::D>(radius_p, dense_p, {{16u}}); } return saw::make_void(); |
