Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
PatchTree.cpp File Reference

PatchTree implementation. More...

#include "shambase/exception.hpp"
#include "shambase/stacktrace.hpp"
#include "shamrock/patch/Patch.hpp"
#include "shamrock/scheduler/PatchTree.hpp"
#include "shamtree/kernels/geometry_utils.hpp"
#include <nlohmann/json.hpp>
#include <stdexcept>
#include <vector>
+ Include dependency graph for PatchTree.cpp:

Go to the source code of this file.

Namespaces

namespace  shamrock
 namespace for the main framework
 

Functions

void shamrock::scheduler::to_json (nlohmann::json &j, const PatchTree &p)
 Serializes a PatchTree object into a JSON object.
 
void shamrock::scheduler::from_json (const nlohmann::json &j, PatchTree &p)
 Deserializes a JSON object into a PatchTree object.
 

Detailed Description

PatchTree implementation.

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 PatchTree.cpp.

Function Documentation

◆ from_json()

void shamrock::scheduler::from_json ( const nlohmann::json &  j,
PatchTree p 
)

Deserializes a JSON object into a PatchTree object.

Parameters
jThe JSON object to deserialize.
pThe PatchTree object to deserialize into.

Definition at line 370 of file PatchTree.cpp.

◆ to_json()

void shamrock::scheduler::to_json ( nlohmann::json &  j,
const PatchTree p 
)

Serializes a PatchTree object into a JSON object.

Parameters
jThe JSON object to serialize the PatchTree into.
pThe PatchTree object to serialize.

Definition at line 362 of file PatchTree.cpp.