From cae6954e67ad58b03b535cc015e9d0118d89695e Mon Sep 17 00:00:00 2001 From: Ella Wu <602725+nwu63@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:54:11 -0800 Subject: [PATCH] update paropt interface (#385) --- pyoptsparse/pyParOpt/ParOpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyoptsparse/pyParOpt/ParOpt.py b/pyoptsparse/pyParOpt/ParOpt.py index 044f359b..3b64140b 100644 --- a/pyoptsparse/pyParOpt/ParOpt.py +++ b/pyoptsparse/pyParOpt/ParOpt.py @@ -173,7 +173,7 @@ def __call__( class Problem(_ParOpt.Problem): def __init__(self, ptr, n, m, xs, blx, bux): - super().__init__(MPI.COMM_SELF, n, m) + super().__init__(MPI.COMM_SELF, nvars=n, ncon=m) self.ptr = ptr self.n = n self.m = m