Skip to content

Commit

Permalink
Replaced np.int with int (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
sseraj authored Dec 21, 2022
1 parent ceedd27 commit 6e56cd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyoptsparse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.9.1"
__version__ = "2.9.2"

from .pyOpt_history import History
from .pyOpt_variable import Variable
Expand Down
8 changes: 4 additions & 4 deletions pyoptsparse/pySLSQP/pySLSQP.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ def slgrad(m, me, la, n, f, g, df, dg, x):
lsei = ((n + 1) + mineq) * ((n + 1) - meq) + 2 * meq + (n + 1)
slsqpb = (n + 1) * (n / 2) + 2 * m + 3 * n + 3 * (n + 1) + 1
lwM = lsq + lsi + lsei + slsqpb + n + m
lw = np.array([lwM], np.int)
lw = np.array([lwM], int)
w = np.zeros(lw, float)
ljwM = max(mineq, (n + 1) - meq)
ljw = np.array([ljwM], np.int)
ljw = np.array([ljwM], int)
jw = np.zeros(ljw, np.intc)
nfunc = np.array([0], np.int)
ngrad = np.array([0], np.int)
nfunc = np.array([0], int)
ngrad = np.array([0], int)

# Run SLSQP
t0 = time.time()
Expand Down

0 comments on commit 6e56cd8

Please sign in to comment.