From dc46115ec055db2fd137f053e0959f1a1d7433bf Mon Sep 17 00:00:00 2001 From: swryan Date: Tue, 28 May 2024 15:49:53 -0400 Subject: [PATCH] np.prod --- openmdao/test_suite/mpi_scaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmdao/test_suite/mpi_scaling.py b/openmdao/test_suite/mpi_scaling.py index 016f88fa00..7d06e44ce6 100644 --- a/openmdao/test_suite/mpi_scaling.py +++ b/openmdao/test_suite/mpi_scaling.py @@ -67,7 +67,7 @@ def compute(self, inputs, outputs): def compute_partials(self, inputs, partials): if debug: print(f"compute partials for {self.pathname}") self.sleep(self.compute_partials_delay) - val = np.eye(np.product(self.varshape, dtype=int)) + val = np.eye(np.prod(self.varshape, dtype=int)) for iname, oname in zip(self.inames, self.onames): partials[oname, iname] = val