Skip to content

Commit

Permalink
API for get_particle_array has changed. Updating code suitably.
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuramachandran committed Apr 25, 2011
1 parent 3454b60 commit 8564d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bench/cl_summation_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

# create the partice array with doubles as the default

pa = base.get_particle_array(floating_point_default="double",
pa = base.get_particle_array(cl_precision="single",
name="test", x=x,h=h,m=m,rho=rho)

particles = base.Particles(arrays=[pa,] ,
Expand Down
2 changes: 1 addition & 1 deletion source/pysph/base/tests/test_particle_array_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
rho = numpy.ones_like(x)
h = 2*m

pa = base.get_particle_array(floating_point_default="float",
pa = base.get_particle_array(cl_precision="single",
x=x, h=h, m=m, rho=rho)

self.pa = pa
Expand Down

0 comments on commit 8564d3a

Please sign in to comment.