Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pyShamrockCtx.cpp File Reference
#include "shambase/logs/loglevels.hpp"
#include "shambackends/typeAliasVec.hpp"
#include "shambindings/pybind11_stl.hpp"
#include "shambindings/pybindaliases.hpp"
#include "shamcomm/logs.hpp"
#include "shammath/AABB.hpp"
#include "shampylib/PatchDataToPy.hpp"
#include "shamrock/patch/Patch.hpp"
#include "shamrock/scheduler/ShamrockCtx.hpp"
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <variant>
Include dependency graph for pyShamrockCtx.cpp:

Go to the source code of this file.

Functions

template<class T>
void register_patch_transform_class (py::module &m, std::string name)
 shamlog_debug_ln ("[Py]", "registering shamrock.Patch")
py::class_< shamrock::patch::Patch >(m, "Patch") .def(py register_patch_transform_class< f64_3 > (m, "PatchCoordTransform_f64_3")
 register_patch_transform_class< f32_3 > (m, "PatchCoordTransform_f32_3")
 register_patch_transform_class< i64_3 > (m, "PatchCoordTransform_i64_3")
 shamlog_debug_ln ("[Py]", "registering shamrock.Context")

Variables

 ON_PYTHON_INIT

Detailed Description

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

Function Documentation

◆ register_patch_transform_class()

template<class T>
void register_patch_transform_class ( py::module & m,
std::string name )
inline

Definition at line 30 of file pyShamrockCtx.cpp.

Variable Documentation

◆ ON_PYTHON_INIT

ON_PYTHON_INIT
Initial value:
{
auto &m = root_module

Definition at line 49 of file pyShamrockCtx.cpp.