Skip to content

Commit

Permalink
Fix a bug when scaling and various kwargs are used for optimal control
Browse files Browse the repository at this point in the history
  • Loading branch information
sblauth committed Jul 6, 2023
1 parent 9bed654 commit f5a22e6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cashocs/_optimization/optimal_control/optimal_control_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,16 @@ def __init__(
states,
controls,
adjoints,
config,
riesz_scalar_products,
control_constraints,
initial_guess,
ksp_options,
adjoint_ksp_options,
None,
control_bcs_list,
config=config,
riesz_scalar_products=riesz_scalar_products,
control_constraints=control_constraints,
initial_guess=initial_guess,
ksp_options=ksp_options,
adjoint_ksp_options=adjoint_ksp_options,
gradient_ksp_options=gradient_ksp_options,
desired_weights=None,
control_bcs_list=control_bcs_list,
preconditioner_forms=preconditioner_forms,
)

def _erase_pde_memory(self) -> None:
Expand Down

0 comments on commit f5a22e6

Please sign in to comment.