Skip to content

Commit

Permalink
python wrapper for DistributedWeightingField
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwindischhofer committed Jan 31, 2024
1 parent c109f06 commit ca72022
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cpython/cdistributedweightingfield.pxd
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit ca72022

Please sign in to comment.