Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock
include
shamrock
solvergraph
Indexes.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
19
#include "
shambase/DistributedData.hpp
"
20
#include "
shamrock/solvergraph/IEdgeNamed.hpp
"
21
#include <memory>
22
23
namespace
shamrock::solvergraph {
24
25
template
<
class
T
int
>
26
class
Indexes
:
public
IEdgeNamed
{
27
public
:
28
using
IEdgeNamed::IEdgeNamed;
29
shambase::DistributedData<Tint>
indexes;
30
31
inline
virtual
void
free_alloc
() { indexes = {}; }
32
33
static
std::shared_ptr<Indexes<Tint>> make_shared(std::string name, std::string texsymbol) {
34
return
std::make_shared<Indexes<Tint>>(name, texsymbol);
35
}
36
};
37
38
}
// namespace shamrock::solvergraph
DistributedData.hpp
IEdgeNamed.hpp
shambase::DistributedData
Represents a collection of objects distributed across patches identified by a u64 id.
Definition
DistributedData.hpp:43
shamrock::solvergraph::IEdgeNamed
Definition
IEdgeNamed.hpp:23
shamrock::solvergraph::Indexes
Definition
Indexes.hpp:26
shamrock::solvergraph::Indexes::free_alloc
virtual void free_alloc()
Free allocated memory.
Definition
Indexes.hpp:31
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8