diff --git a/bench/cl_summation_density.py b/bench/cl_summation_density.py index 0858712..ca61200 100644 --- a/bench/cl_summation_density.py +++ b/bench/cl_summation_density.py @@ -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,] , diff --git a/source/pysph/base/tests/test_particle_array_cl.py b/source/pysph/base/tests/test_particle_array_cl.py index ba42746..bf3469d 100644 --- a/source/pysph/base/tests/test_particle_array_cl.py +++ b/source/pysph/base/tests/test_particle_array_cl.py @@ -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