Skip to content

Commit

Permalink
fixed the convertJacobian call when jacType == "csr" so that it retur…
Browse files Browse the repository at this point in the history
…ns CSR data instead of passing through
  • Loading branch information
gjkennedy committed Dec 7, 2023
1 parent 75e6479 commit 8f9fb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyoptsparse/pyOpt_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def _convertJacobian(self, gcon_csr_in):
self._jac_map_csr_to_csc = mapToCSC(gcon_csr)
gcon = gcon_csr["csr"][IDATA][self._jac_map_csr_to_csc[IDATA]]
elif self.jacType == "csr":
pass
gcon = gcon_csr["csr"][IDATA]

Check warning on line 668 in pyoptsparse/pyOpt_optimizer.py

View check run for this annotation

Codecov / codecov/patch

pyoptsparse/pyOpt_optimizer.py#L668

Added line #L668 was not covered by tests
elif self.jacType == "coo":
gcon = convertToCOO(gcon_csr)
gcon = gcon["coo"][IDATA]
Expand Down

0 comments on commit 8f9fb1f

Please sign in to comment.