Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
InterfacesUtility.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
18#include "shamalgs/memory.hpp"
22#include <vector>
23
24namespace shamrock {
25
26 template<class T>
28 public:
29 std::optional<shammath::CoordRange<T>> bounds;
30 u32 original_elements;
31 u32 total_elements;
33
34 bool has_bound_info() { return bounds.has_value(); }
35 };
36
38 public:
39 u32 original_elements;
40 u32 total_elements;
43 };
44
46 PatchScheduler &sched;
47
48 public:
49 InterfacesUtility(PatchScheduler &sched) : sched(sched) {}
50 };
51} // namespace shamrock
MPI scheduler.
std::uint32_t u32
32 bit unsigned integer
The MPI scheduler.
PatchDataLayer container class, the layout is described in patchdata_layout.
namespace for the main framework
Definition __init__.py:1
main include file for memory algorithms