Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
AMRCellInfos.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 "shambackends/sycl.hpp"
21
22 template<class Tvec, class TgridVec>
23 struct CellInfos {
24
25 using Tscal = shambase::VecComponent<Tvec>;
26 using Tgridscal = shambase::VecComponent<TgridVec>;
27
28 // size of a cell of a block = block_cell_sizes[block]
29 shamrock::ComputeField<Tscal> block_cell_sizes;
30
31 // the center of the first cell in the block
32 // cell0block_aabb[block] + lcoord[loc_id]*block_cell_sizes[block] = cell0 aabb [global cell
33 // id]
34 shamrock::ComputeField<Tvec> cell0block_aabb_lower;
35
36 // upper is not needed since it is cell0block_aabb_lower + block_cell_sizes
37 };
38
39} // namespace shammodels::basegodunov::modules
namespace for the basegodunov model modules