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 /modules/core/tests/equilibrium.cpp | |
| parent | fa6bc96b28f6654040992b282525b88d5d46aca9 (diff) | |
| download | libs-lbm-c59aeef2e0c86ec3f0f34ce77c205f3ef0b034cc.tar.gz | |
Abstract move. Forstio independence
Diffstat (limited to 'modules/core/tests/equilibrium.cpp')
| -rw-r--r-- | modules/core/tests/equilibrium.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/tests/equilibrium.cpp b/modules/core/tests/equilibrium.cpp index 7d36600..ad11699 100644 --- a/modules/core/tests/equilibrium.cpp +++ b/modules/core/tests/equilibrium.cpp @@ -11,15 +11,15 @@ void check_equilibrium(){ using dfi = lbm::df_info<lbm::sch::Float64,Descriptor>; - saw::data<lbm::sch::Scalar<lbm::sch::Float64>> rho; + kel::lbm::data<lbm::sch::Scalar<lbm::sch::Float64>> rho; rho.at({}).set(1.0); - saw::data<lbm::sch::Vector<lbm::sch::Float64,Descriptor::D>> vel; - for(saw::data<lbm::sch::UInt64> i{0u}; i.get() < Descriptor::D; ++i){ + kel::lbm::data<lbm::sch::Vector<lbm::sch::Float64,Descriptor::D>> vel; + for(kel::lbm::data<lbm::sch::UInt64> i{0u}; i.get() < Descriptor::D; ++i){ vel.at({{i}}) = {0.0}; } auto eq = lbm::equilibrium<lbm::sch::Float64,Descriptor>(rho,vel); - for(saw::data<lbm::sch::UInt64> i{0u}; i.get() < Descriptor::Q; ++i){ + for(kel::lbm::data<lbm::sch::UInt64> i{0u}; i.get() < Descriptor::Q; ++i){ SAW_EXPECT(eq.at(i).get() == dfi::weights[i.get()], std::string{"No momentum and normalized rho should be exactly the weights: "} + std::to_string(eq.at(i).get()) + std::string{" "} + std::to_string(dfi::weights[i.get()])); } } |
