nbia-astro / skeletor

Parallel PIC code written in Python and based on the skeleton codes provided by PICKSC
GNU General Public License v3.0
1 stars 0 forks source link

Grid class in cython #65

Closed tberlok closed 7 years ago

tberlok commented 7 years ago

At the moment our python grid class cannot be passed to cython functions. For instance, in the cython push we have the following:

def boris_push(particle_t[:] particles, real2_t[:, :] E, real_t bz,
               real_t qtmh, real_t dt, int noff, int lbx, int lby):

which we would ideally like to replace with

def boris_push(particle_t[:] particles, real2_t[:, :] E, real_t bz,
               real_t qtmh, real_t dt, grid_t grid):
tobson commented 7 years ago

This is now implemented, see b97e2499b7e03736eb7350c0888c2f7beec5437d. The change mentioned in the previous comment has been made in 54bb9d9ebccf563e1da75c71c88b85637c6b85be. I'm leaving this issue open for now since I haven't had time to make analogous changes in other parts of the code.

tberlok commented 7 years ago

I think we can close this now. Will you do this?