From 2918cb567ec7e699a531ce0932c0c460df429c95 Mon Sep 17 00:00:00 2001
From: navaneet <navaneet@acni>
Date: Mon, 17 Aug 2026 21:46:52 +0530
Subject: [PATCH] test(parallel summation_density): fix dtype

mpi4py expects `gathers` as an int array so specified it as an an int
explicitly.
---
 pysph/parallel/tests/summation_density.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pysph/parallel/tests/summation_density.py b/pysph/parallel/tests/summation_density.py
index 58decfef2..a0426fc74 100644
--- a/pysph/parallel/tests/summation_density.py
+++ b/pysph/parallel/tests/summation_density.py
@@ -104,7 +104,7 @@ def main():
     H1 = numpy.ones_like(X1) * hdx * dx
     RHO1 = numpy.zeros_like(X1)
 
-    gathers = (numpy.ones(size) * numMyPoints, None)
+    gathers = (numpy.ones(size, dtype=int) * numMyPoints, None)
 
     comm.Gatherv(sendbuf=[x1, mpi.DOUBLE], recvbuf=[X1, gathers, mpi.DOUBLE])
     comm.Gatherv(sendbuf=[y1, mpi.DOUBLE], recvbuf=[Y1, gathers, mpi.DOUBLE])
