Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
SolverStorage.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
21#include "shambackends/vec.hpp"
31namespace shammodels::zeus {
32
33 template<class T>
34 using Component = shambase::StorageComponent<T>;
35
36 template<class Tvec, class TgridVec, class Tmorton>
38 public:
39 using Tscal = shambase::VecComponent<Tvec>;
40 using Tgridscal = shambase::VecComponent<TgridVec>;
42
44
45 Component<SerialPatchTree<TgridVec>> serial_patch_tree;
46
48
51
56
58
60
72
74
79
83
87
91
93
96
101
105
109
116
122
123 struct Timings {
124 f64 interface = 0;
125 f64 neighbors = 0;
126 f64 io = 0;
127
129 void reset() { *this = {}; }
130 } timings_details;
131 };
132
133} // namespace shammodels::zeus
double f64
Alias for double.
std::uint32_t u32
32 bit unsigned integer
The radix tree.
Definition RadixTree.hpp:50
Helper class for Storage Module of any solver.
Component< shambase::DistributedData< sycl::buffer< u8 > > > face_normals_lookup
for each face give a lookup table for the normal orientation 0 = x- 1 = x+ 2 = y- 3 = y+ 4 = z- 5 = z...
Component< shamrock::ComputeField< Tvec > > gradu
derivatives of the velocity layout :
namespace for the zeus model
This file contains the definition for the stacktrace related functionality.
void reset()
Reset the timings logged in the storage.