Skip to content

Commit

Permalink
reset to include off-diag components
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Hammond committed Nov 3, 2021
1 parent d4b1e1a commit 2dde9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/adjoint/optimization_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ def __init__(

self.gradient = []

def __call__(self, rho_vector=None, need_value=True, need_gradient=True):
def __call__(self, rho_vector=None, need_value=True, need_gradient=True, beta=None):
"""Evaluate value and/or gradient of objective function.
"""
if rho_vector:
self.update_design(rho_vector=rho_vector)
self.update_design(rho_vector=rho_vector, beta=beta)

# Run forward run if requested
if need_value and self.current_state == "INIT":
Expand Down

0 comments on commit 2dde9d6

Please sign in to comment.