Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
common
include
shammodels
common
amr
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
"
19
#include "
shamrock/scheduler/ComputeField.hpp
"
20
namespace
shammodels::basegodunov::modules
{
21
22
template
<
class
Tvec,
class
Tgr
id
Vec>
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
ComputeField.hpp
shamrock::ComputeField
Definition
ComputeField.hpp:31
shammodels::basegodunov::modules
namespace for the basegodunov model modules
Definition
AMRCellInfos.hpp:20
shammodels::basegodunov::modules::CellInfos
Definition
AMRCellInfos.hpp:23
sycl.hpp
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8