Exemplo n.º 1
0
 def _read_particle_coords(self, chunks, ptf):
     offset = grid._particle_offset
     filen = os.path.expanduser(grid.particle_filename)
     off = grid._particle_offset
     tr = np.zeros(grid.NumberOfParticles, dtype='float64')
     read_castro_particles(filen, off,
                         nyx_particle_field_names.index(field),
                         len(nyx_particle_field_names), tr)
Exemplo n.º 2
0
 def _read_particle_coords(self, chunks, ptf):
     offset = grid._particle_offset
     filen = os.path.expanduser(grid.particle_filename)
     off = grid._particle_offset
     tr = np.zeros(grid.NumberOfParticles, dtype='float64')
     read_castro_particles(filen, off,
                         nyx_particle_field_names.index(field),
                         len(nyx_particle_field_names), tr)
Exemplo n.º 3
0
 def _read_particle_field(self, grid, field):
     offset = grid._particle_offset
     filen = os.path.expanduser(grid.particle_filename)
     off = grid._particle_offset
     tr = np.zeros(grid.NumberOfParticles, dtype='float64')
     read_castro_particles(filen, off,
         castro_particle_field_names.index(field),
         len(castro_particle_field_names),
         tr)
     return tr
Exemplo n.º 4
0
 def _read_particle_field(self, grid, field):
     offset = grid._particle_offset
     filen = os.path.expanduser(grid.particle_filename)
     off = grid._particle_offset
     tr = np.zeros(grid.NumberOfParticles, dtype='float64')
     read_castro_particles(filen, off,
         castro_particle_field_names.index(field),
         len(castro_particle_field_names),
         tr)
     return tr