ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
lb_kernels.cuh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2026 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
23
24#include "lb_kernels.hpp"
25
38
43
44namespace walberla {
45namespace detail {
46
47template <> struct KernelTrait<double, lbmpy::Arch::GPU> {
48 using StreamCollisionModelThermalized =
49 pystencils::StreamCollideSweepThermalizedDoublePrecisionCUDA;
50 using StreamCollisionModelLeesEdwards =
51 pystencils::StreamCollideSweepLeesEdwardsDoublePrecisionCUDA;
52 using InitialPDFsSetter = pystencils::InitialPDFsSetterDoublePrecisionCUDA;
53 using UpdateVelFromPDF = pystencils::UpdateVelFromPDFDoublePrecisionCUDA;
54 using PackInfoPdf = pystencils::PackInfoPdfDoublePrecisionCUDA;
55 using PackInfoVec = pystencils::PackInfoVecDoublePrecisionCUDA;
56 using DynamicUBB = lbm::DynamicUBBDoublePrecisionCUDA;
57};
58
59template <> struct KernelTrait<float, lbmpy::Arch::GPU> {
60 using StreamCollisionModelThermalized =
61 pystencils::StreamCollideSweepThermalizedSinglePrecisionCUDA;
62 using StreamCollisionModelLeesEdwards =
63 pystencils::StreamCollideSweepLeesEdwardsSinglePrecisionCUDA;
64 using InitialPDFsSetter = pystencils::InitialPDFsSetterSinglePrecisionCUDA;
65 using UpdateVelFromPDF = pystencils::UpdateVelFromPDFSinglePrecisionCUDA;
66 using PackInfoPdf = pystencils::PackInfoPdfSinglePrecisionCUDA;
67 using PackInfoVec = pystencils::PackInfoVecSinglePrecisionCUDA;
68 using DynamicUBB = lbm::DynamicUBBSinglePrecisionCUDA;
69};
70
71} // namespace detail
72} // namespace walberla
\file PackInfoPdfDoublePrecision.cpp \author pystencils