ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
EKReactionBaseIndexed.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024-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 "EKReactionBase.hpp"
23
24#include <utils/Vector.hpp>
25
26#include <optional>
27#include <vector>
28
29namespace walberla {
30
32public:
34 ~EKReactionBaseIndexed() override = default;
35 virtual void set_node_is_boundary(Utils::Vector3i const &node,
36 bool is_boundary) = 0;
37 virtual std::optional<bool>
39 [[nodiscard]] virtual std::vector<int>
41 Utils::Vector3i const &upper_corner) const = 0;
44 std::vector<int> const &is_boundary) = 0;
45 virtual void ghost_communication() = 0;
46};
47
48} // namespace walberla
Vector implementation and trait types for boost qvm interoperability.
virtual void set_slice_is_boundary(Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< int > const &is_boundary)=0
virtual void set_node_is_boundary(Utils::Vector3i const &node, bool is_boundary)=0
~EKReactionBaseIndexed() override=default
virtual std::optional< bool > get_node_is_boundary(Utils::Vector3i const &node)=0
virtual void ghost_communication()=0
virtual std::vector< int > get_slice_is_boundary(Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const =0
EKReactionBase(std::shared_ptr< LatticeWalberla > lattice, reactants_type reactants, double coefficient)
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
\file PackInfoPdfDoublePrecision.cpp \author pystencils