Skip to content

Commit

Permalink
np.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed May 28, 2024
1 parent fd434cf commit dc46115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmdao/test_suite/mpi_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc46115

Please sign in to comment.