![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Class to insert data in the PatchScheduler. More...
#include <shamrock/include/shamrock/scheduler/DataInserterUtility.hpp>
Public Member Functions | |
| DataInserterUtility (PatchScheduler &sched) | |
| Constructor. | |
| void | balance_load (std::function< void(void)> load_balance_update) |
| template<class Tvec > | |
| u64 | push_patch_data (shamrock::patch::PatchDataLayer &pdat_ins, std::string main_field_name, u32 split_threshold, std::function< void(void)> load_balance_update) |
| Pushes data into the scheduler. | |
Class to insert data in the PatchScheduler.
This class is used to insert data in the PatchScheduler. It provides a way to push data into the scheduler and handle the insertion of the data into the correct patches.
Definition at line 37 of file DataInserterUtility.hpp.
|
inline |
Constructor.
| sched | The PatchScheduler to work on. |
Definition at line 46 of file DataInserterUtility.hpp.
|
inline |
Definition at line 48 of file DataInserterUtility.hpp.
|
inline |
Pushes data into the scheduler.
use directly main field at id=0 and deduce type
implement case we more object than the threshold are present
| pdat_ins | The PatchData object containing the data to be inserted. |
| main_field_name | The name of the main field. |
| split_threshold | The threshold at which the data will be split. |
| load_balance_update | A function to call after the insertion of the data. This function should call the load balance algorithm. |
Definition at line 112 of file DataInserterUtility.hpp.
Here is the call graph for this function: