Skip to content

Commit

Permalink
fix evaluate composite func bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-engelstad committed Nov 1, 2023
1 parent f76625f commit 7d0711c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions funtofem/driver/funtofem_shape_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def solve_forward(self):
self._get_remote_functions(discipline="aerodynamic")

# evaluate composite functions
self.evaluate_composite_functions(compute_grad=False)
self.model.evaluate_composite_functions(compute_grad=False)
return

def solve_adjoint(self):
Expand Down Expand Up @@ -504,7 +504,7 @@ def solve_adjoint(self):
self._get_aero_shape_derivatives(scenario)

# evaluate the composite functions
self.evaluate_composite_functions(compute_grad=True)
self.model.evaluate_composite_functions(compute_grad=True)

# write a functions file
if self.is_remote and self.is_paired and self.comm.rank == 0:
Expand Down

0 comments on commit 7d0711c

Please sign in to comment.