Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock
include
shamrock
solvergraph
ExtractGhostField.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
20
#include "
shambase/aliases_int.hpp
"
21
#include "
shamrock/solvergraph/CopyPatchDataField.hpp
"
22
#include "
shamrock/solvergraph/DDSharedBuffers.hpp
"
23
#include "
shamrock/solvergraph/IFieldRefs.hpp
"
24
#include "
shamrock/solvergraph/PatchDataFieldDDShared.hpp
"
25
#include "
shamsolvergraph/node/INode.hpp
"
26
27
#define NODE_EDGES(X_RO, X_RW) \
28
/* ------------------- inputs ------------------- */
\
29
X_RO(shamrock::solvergraph::IFieldRefs<T>, original_fields) \
30
X_RO(shamrock::solvergraph::DDSharedBuffers<u32>, idx_in_ghosts) \
31
\
32
/* ------------------- outputs ------------------- */
\
33
X_RW(shamrock::solvergraph::PatchDataFieldDDShared<T>, ghost_fields)
34
35
namespace
shamrock::solvergraph {
36
37
template
<
class
T>
38
class
ExtractGhostField :
public
INode {
39
40
public
:
41
ExtractGhostField() {}
42
43
EXPAND_NODE_EDGES(NODE_EDGES)
44
45
void
_impl_evaluate_internal
();
46
47
inline
virtual
std::string
_impl_get_label
()
const
{
return
"ExtractGhostField"
; };
48
49
virtual
std::string
_impl_get_tex
()
const
{
return
"TODO"
; };
50
};
51
}
// namespace shamrock::solvergraph
52
53
#undef NODE_EDGES
CopyPatchDataField.hpp
Defines the CopyPatchDataField class for copying fields between patch data field references.
DDSharedBuffers.hpp
Defines the DDSharedBuffers class for managing buffers contained in a distributed data shared.
IFieldRefs.hpp
INode.hpp
PatchDataFieldDDShared.hpp
Shared distributed data field for patch data management in solver graphs.
aliases_int.hpp
shamrock::solvergraph::ExtractGhostField::_impl_get_tex
virtual std::string _impl_get_tex() const
get the tex of the node
Definition
ExtractGhostField.hpp:49
shamrock::solvergraph::ExtractGhostField::_impl_evaluate_internal
void _impl_evaluate_internal()
evaluate the node
Definition
ExtractGhostField.cpp:24
shamrock::solvergraph::ExtractGhostField::_impl_get_label
virtual std::string _impl_get_label() const
get the label of the node
Definition
ExtractGhostField.hpp:47
Generated on
for Shamrock by
1.15.0