Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pybindings.hpp
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
10#pragma once
11
21
22namespace shambindings {
23
29 void init_lib(py::module &m);
30
37 void init_embed(py::module &m, bool hook_stdout = true);
38
43
48
49} // namespace shambindings
Source location utility.
Pybind11 include and definitions.
void expect_init_embed(SourceLocation loc=SourceLocation{})
Expect python bindings to be initialized as embed mode, throws if not.
void init_embed(py::module &m, bool hook_stdout=true)
Init python bindings and register them to Python API.
void expect_init_lib(SourceLocation loc=SourceLocation{})
Expect python bindings to be initialized as lib mode, throws if not.
void init_lib(py::module &m)
Init python bindings and register them to Python API.
provide information about the source location