diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-18 18:01:14 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-18 18:01:14 +0200 |
| commit | 24bf28a8fb9cc8c3a90b77de9b60728bece7885d (patch) | |
| tree | dfcbfcb8775bf96847d4a187695158b968902889 /tests/descriptor.cpp | |
| parent | a980da34513a9ad41e309e66432fcb80ddaf2e31 (diff) | |
| download | libs-lbm-24bf28a8fb9cc8c3a90b77de9b60728bece7885d.tar.gz | |
Moving project structure for more less compilation
Diffstat (limited to 'tests/descriptor.cpp')
| -rw-r--r-- | tests/descriptor.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/descriptor.cpp b/tests/descriptor.cpp deleted file mode 100644 index a8337e6..0000000 --- a/tests/descriptor.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include <forstio/test/suite.hpp> - -#include "../c++/descriptor.hpp" - - -namespace { -template<typename Descriptor> -void check_opposite_dirs(){ - using namespace kel; - - using dfi = lbm::df_info<lbm::sch::Float32, Descriptor>; - - for(uint64_t k = 0u; k < Descriptor::Q; ++k){ - auto k_inv = dfi::opposite_index[k]; - - for(uint64_t i = 0u; i < Descriptor::D; ++i){ - SAW_EXPECT(dfi::directions[k][i] == (-1*dfi::directions[k_inv][i]), "Opposites are inconsistent"); - } - } -} - -SAW_TEST("Opposites and Dirs D1Q3"){ - using namespace kel; - check_opposite_dirs<lbm::sch::Descriptor<1,3>>(); -} - -SAW_TEST("Opposites and Dirs D2Q5"){ - using namespace kel; - check_opposite_dirs<lbm::sch::Descriptor<2,5>>(); -} -SAW_TEST("Opposites and Dirs D2Q9"){ - using namespace kel; - check_opposite_dirs<lbm::sch::Descriptor<2,9>>(); -} -} |
