From ca72022e1c51d425f6c7e74c2565141dd9da1413 Mon Sep 17 00:00:00 2001 From: Philipp Windischhofer Date: Wed, 31 Jan 2024 12:22:08 -0600 Subject: [PATCH] python wrapper for DistributedWeightingField --- cpython/cdistributedweightingfield.pxd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cpython/cdistributedweightingfield.pxd diff --git a/cpython/cdistributedweightingfield.pxd b/cpython/cdistributedweightingfield.pxd new file mode 100644 index 000000000..5a6287a00 --- /dev/null +++ b/cpython/cdistributedweightingfield.pxd @@ -0,0 +1,12 @@ +from cpython.libeisvogel cimport * +from cpython.ccoordutils cimport IndexVector +from libcpp.string cimport string + +cdef extern from "Eisvogel/DistributedWeightingField.hh": + cdef cppclass DistributedWeightingField: + DistributedWeightingField(string wf_path); + scalar_t E_r(IndexVector& ind); + scalar_t E_z(IndexVector& ind); + scalar_t E_phi(IndexVector& ind); + size_t shape(size_t dim); + size_t startInd(size_t dim); \ No newline at end of file