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