Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
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
21
22template<class Tvec, template<class> class SPHKernel>
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
32using namespace shammath;
36
namespace for math utility
Definition AABB.hpp:26
sph kernels
Patch object that contain generic patch information.
Definition Patch.hpp:33