diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-08 22:04:06 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-08 22:04:06 +0100 |
| commit | c59aeef2e0c86ec3f0f34ce77c205f3ef0b034cc (patch) | |
| tree | 7e29aea25537b31040c5bb3649749706e54e5706 /examples/feature_development/init.hpp | |
| parent | fa6bc96b28f6654040992b282525b88d5d46aca9 (diff) | |
| download | libs-lbm-c59aeef2e0c86ec3f0f34ce77c205f3ef0b034cc.tar.gz | |
Abstract move. Forstio independence
Diffstat (limited to 'examples/feature_development/init.hpp')
| -rw-r--r-- | examples/feature_development/init.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/feature_development/init.hpp b/examples/feature_development/init.hpp index b7fdeb0..a61ef37 100644 --- a/examples/feature_development/init.hpp +++ b/examples/feature_development/init.hpp @@ -6,11 +6,11 @@ namespace kel { namespace lbm { template<typename T, typename Desc, typename Coll> -saw::error_or<void> init( +kel::lbm::error_or<void> init( 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 + kel::lbm::data<sch::ChunkStruct<T,Desc>>& fields, + kel::lbm::data<sch::MacroStruct<T,Desc>>& macros, + kel::lbm::data<sch::ParticleSpheroidGroup<T,Desc>>& particles ){ (void) conv; @@ -95,7 +95,7 @@ saw::error_or<void> init( iterator<Desc::D>::apply( [&](auto& index){ - saw::data<sch::Vector<T,Desc::D>> middle, ind_vec; + kel::lbm::data<sch::Vector<T,Desc::D>> middle, ind_vec; middle.at({{0u}}) = dim_x * 0.25; middle.at({{1u}}) = dim_y * 0.5; @@ -103,7 +103,7 @@ saw::error_or<void> init( ind_vec.at({{1u}}) = index.at({{1u}}).template cast_to<T>(); auto dist = middle - ind_vec; - auto dist_2 = saw::math::dot(dist,dist); + auto dist_2 = kel::lbm::math::dot(dist,dist); if(dist_2.at({}).get() < dim_y*dim_y*0.01){ porous_f.at(index).at({}) = 0.0; } @@ -113,14 +113,14 @@ saw::error_or<void> init( ); { - saw::data<sch::Scalar<T>> radius_p; + kel::lbm::data<sch::Scalar<T>> radius_p; radius_p.at({}).set(2); - saw::data<sch::Scalar<T>> dense_p; + kel::lbm::data<sch::Scalar<T>> dense_p; dense_p.at({}).set(1); particles = create_spheroid_particle_group<T,Desc::D,1u>(radius_p, dense_p, {{16u}}); } - return saw::make_void(); + return kel::lbm::make_void(); } } |
