diff options
author | Adrian Kummerlaender | 2021-08-23 22:04:50 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-08-23 22:04:50 +0200 |
commit | 8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7 (patch) | |
tree | 677c40069c559c6f10da4100e0d5de82bf1886d0 /tangle/LLBM/kernel | |
parent | ec18c110e5852997727683663b48ba3919902617 (diff) | |
download | LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar.gz LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar.bz2 LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar.lz LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar.xz LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.tar.zst LiterateLB-8691f6f7306914d8fc9d5afc8a347ebf5ce0a7d7.zip |
Replace InitializeO by memset
Diffstat (limited to 'tangle/LLBM/kernel')
-rw-r--r-- | tangle/LLBM/kernel/collect_q_criterion.h | 2 | ||||
-rw-r--r-- | tangle/LLBM/kernel/initialize.h | 44 |
2 files changed, 1 insertions, 45 deletions
diff --git a/tangle/LLBM/kernel/collect_q_criterion.h b/tangle/LLBM/kernel/collect_q_criterion.h index fa19dc7..6f770e5 100644 --- a/tangle/LLBM/kernel/collect_q_criterion.h +++ b/tangle/LLBM/kernel/collect_q_criterion.h @@ -14,7 +14,7 @@ __device__ static void apply( , std::size_t iX , std::size_t iY , std::size_t iZ - , T* cell_rho + , T* cell_rho , T* cell_u , T* cell_curl_norm , cudaSurfaceObject_t surface diff --git a/tangle/LLBM/kernel/initialize.h b/tangle/LLBM/kernel/initialize.h deleted file mode 100644 index 221b9ad..0000000 --- a/tangle/LLBM/kernel/initialize.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once -#include <LLBM/call_tag.h> - -struct InitializeO { - -using call_tag = tag::call_by_cell_id; - -template <typename T, typename S> -__device__ static void apply(descriptor::D2Q9, S f_curr[9], S f_next[9], std::size_t gid) { - f_next[0] = T{0.0277777777777778}; - f_next[1] = T{0.111111111111111}; - f_next[2] = T{0.0277777777777778}; - f_next[3] = T{0.111111111111111}; - f_next[4] = T{0.444444444444444}; - f_next[5] = T{0.111111111111111}; - f_next[6] = T{0.0277777777777778}; - f_next[7] = T{0.111111111111111}; - f_next[8] = T{0.0277777777777778}; -} - -template <typename T, typename S> -__device__ static void apply(descriptor::D3Q19, S f_curr[19], S f_next[19], std::size_t gid) { - f_next[0] = T{0.0277777777777778}; - f_next[1] = T{0.0277777777777778}; - f_next[2] = T{0.0555555555555556}; - f_next[3] = T{0.0277777777777778}; - f_next[4] = T{0.0277777777777778}; - f_next[5] = T{0.0277777777777778}; - f_next[6] = T{0.0555555555555556}; - f_next[7] = T{0.0277777777777778}; - f_next[8] = T{0.0555555555555556}; - f_next[9] = T{0.333333333333333}; - f_next[10] = T{0.0555555555555556}; - f_next[11] = T{0.0277777777777778}; - f_next[12] = T{0.0555555555555556}; - f_next[13] = T{0.0277777777777778}; - f_next[14] = T{0.0277777777777778}; - f_next[15] = T{0.0277777777777778}; - f_next[16] = T{0.0555555555555556}; - f_next[17] = T{0.0277777777777778}; - f_next[18] = T{0.0277777777777778}; -} - -}; |