Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Functions
scheduler_patch_list.hpp File Reference

Class to handle the patch list of the mpi scheduler. More...

#include "shambase/SourceLocation.hpp"
#include "shambase/exception.hpp"
#include "shamrock/patch/Patch.hpp"
#include <nlohmann/json.hpp>
#include <unordered_map>
#include <unordered_set>
#include <array>
#include <stdexcept>
#include <tuple>
#include <vector>
+ Include dependency graph for scheduler_patch_list.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SchedulerPatchList
 Handle the patch list of the mpi scheduler. More...
 

Functions

void to_json (nlohmann::json &j, const SchedulerPatchList &p)
 Serializes a SchedulerPatchList object to a JSON object.
 
void from_json (const nlohmann::json &j, SchedulerPatchList &p)
 Deserializes a JSON object into a SchedulerPatchList object.
 
std::vector< shamrock::patch::Patchmake_fake_patch_list (u32 total_dtcnt, u64 div_limit)
 generate a fake patch list corresponding to a tree structure
 

Detailed Description

Class to handle the patch list of the mpi scheduler.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file scheduler_patch_list.hpp.

Function Documentation

◆ from_json()

void from_json ( const nlohmann::json &  j,
SchedulerPatchList p 
)

Deserializes a JSON object into a SchedulerPatchList object.

Parameters
jThe JSON object to deserialize from.
pThe SchedulerPatchList object to deserialize into.

Definition at line 244 of file scheduler_patch_list.cpp.

◆ make_fake_patch_list()

std::vector< shamrock::patch::Patch > make_fake_patch_list ( u32  total_dtcnt,
u64  div_limit 
)

generate a fake patch list corresponding to a tree structure

Parameters
total_dtcnttotal data count
div_limitdata count limit to split
Returns
std::vector<Patch> the fake patch list

Definition at line 252 of file scheduler_patch_list.cpp.

◆ to_json()

void to_json ( nlohmann::json &  j,
const SchedulerPatchList p 
)

Serializes a SchedulerPatchList object to a JSON object.

Parameters
jThe JSON object to serialize to.
pThe SchedulerPatchList object to serialize.

Definition at line 235 of file scheduler_patch_list.cpp.