Skip to content

Commit

Permalink
Merge pull request #747 from PlasmaControl/pk/use_jit_fix
Browse files Browse the repository at this point in the history
fixing bug when building proximal projection objective
  • Loading branch information
pkim1818 authored Nov 14, 2023
2 parents 3eb55a0 + 396270d commit 182db38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions desc/optimize/_constraint_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,12 @@ def build(self, eq=None, use_jit=None, verbose=1): # noqa: C901
# with this directly, so if the user wants to manually rebuild they should
# do it before this wrapper is created for them.
if not self._objective.built:
self._objective.build(self._eq, verbose=verbose)
self._objective.build(use_jit=use_jit, verbose=verbose)
if not self._constraint.built:
self._constraint.build(self._eq, verbose=verbose)
self._constraint.build(use_jit=use_jit, verbose=verbose)

for constraint in self._linear_constraints:
constraint.build(self._eq, verbose=verbose)
constraint.build(use_jit=use_jit, verbose=verbose)

self._objectives = combine_args(self._objective, self._constraint)
self._set_things(self._all_things)
Expand Down

0 comments on commit 182db38

Please sign in to comment.