| |
1 #pragma once |
| |
2 #include <cmath> |
| |
3 |
| |
4 #pragma once |
| |
5 #include <dolfinx/fem/Function.h> |
| |
6 |
| |
7 #pragma once |
| |
8 #include <Python.h> |
| |
9 |
| |
10 namespace dolfinx_access { |
| |
11 using namespace dolfinx::fem; |
| |
12 |
| |
13 using PyObject = ::PyObject; |
| |
14 typedef Function<double> Function_f64; |
| |
15 |
| |
16 const Function_f64* cast_Function_f64(const PyObject* obj); |
| |
17 Function_f64* cast_mut_Function_f64(PyObject* obj); |
| |
18 |
| |
19 bool check_Function_f64(const PyObject* obj); |
| |
20 |
| |
21 PyObject* wrap_Function_f64(Function_f64* f); |
| |
22 |
| |
23 } // namespace dolfinx_access |
| |
24 |
| |
25 extern "C" PyObject* PyInit_dolfinx_access(); |