ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
lb_fields.cuh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019-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
22#include "lb_kernels.cuh"
23
25
26#include <blockforest/communication/UniformBufferedScheme.h>
27#include <gpu/GPUField.h>
28#include <gpu/communication/MemcpyPackInfo.h>
29#include <gpu/communication/UniformGPUScheme.h>
30
31namespace walberla {
32template <typename FT, class PdfStencil>
33struct FieldTrait<FT, PdfStencil, lbmpy::Arch::GPU> {
34private:
35 static auto constexpr AT = lbmpy::Arch::GPU;
36 template <class Field>
37 using MemcpyPackInfo = gpu::communication::MemcpyPackInfo<Field>;
38
39public:
40 template <typename Stencil>
41 class UniformGPUScheme
42 : public gpu::communication::UniformGPUScheme<Stencil> {
43 public:
44 explicit UniformGPUScheme(auto const &bf)
45 : gpu::communication::UniformGPUScheme<Stencil>(
46 bf, /* sendDirectlyFromGPU */ false,
47 /* useLocalCommunication */ false) {}
48 };
49 using PdfField = gpu::GPUField<FT>;
50 using VectorField = gpu::GPUField<FT>;
51 template <class Field> using PackInfo = MemcpyPackInfo<Field>;
54 template <class Stencil> using RegularCommScheme = UniformGPUScheme<Stencil>;
55 template <class Stencil>
57 blockforest::communication::UniformBufferedScheme<Stencil>;
58};
59} // namespace walberla
\file PackInfoPdfDoublePrecision.cpp \author pystencils
blockforest::communication::UniformBufferedScheme< Stencil > BoundaryCommScheme
Definition lb_fields.cuh:57