Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
sph
src
modules
ComputeLoadBalanceValue.cpp
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
18
#include "
shammodels/sph/modules/ComputeLoadBalanceValue.hpp
"
19
#include "
shammath/sphkernels.hpp
"
20
#include "
shamsys/legacy/log.hpp
"
21
22
template
<
class
Tvec,
template
<
class
>
class
SPHKernel>
23
void
shammodels::sph::modules::ComputeLoadBalanceValue<Tvec, SPHKernel>::update_load_balancing
() {
24
StackEntry
stack_loc{};
25
26
shamlog_debug_ln(
"ComputeLoadBalanceValue"
,
"update load balancing"
);
27
scheduler().update_local_load_value([&](
shamrock::patch::Patch
p) {
28
return
scheduler().patch_data.owned_data.get(p.id_patch).get_obj_cnt();
29
});
30
}
31
32
using namespace
shammath
;
33
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, M4>
;
34
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, M6>
;
35
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, M8>
;
36
37
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, C2>
;
38
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, C4>
;
39
template
class
shammodels::sph::modules::ComputeLoadBalanceValue<f64_3, C6>
;
ComputeLoadBalanceValue.hpp
shammodels::sph::modules::ComputeLoadBalanceValue
Definition
ComputeLoadBalanceValue.hpp:28
log.hpp
shammath
namespace for math utility
Definition
AABB.hpp:26
sphkernels.hpp
sph kernels
shambase::details::BasicStackEntry
Definition
stacktrace.hpp:106
shamrock::patch::Patch
Patch object that contain generic patch information.
Definition
Patch.hpp:33
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8