Skip to content

Commit

Permalink
use deriv_diff_map in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Jan 7, 2022
1 parent 2a99ff6 commit c3d314b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion idaes/core/solvers/tests/test_petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def test_set_dae_suffix():
constraints = [con[t] for con in time_cons if t in con]
variables = [var[t] for var in time_vars]
t_block = create_subsystem_block(constraints, variables)
petsc._set_dae_suffixes_from_variables(t_block, variables)
deriv_diff_map = petsc._get_derivative_differential_data_map(m, m.t)
petsc._set_dae_suffixes_from_variables(t_block, variables, deriv_diff_map)
petsc._sub_problem_scaling_suffix(m, t_block)

assert t_block.dae_suffix[m.ydot[180, 1]] == 2
Expand Down

0 comments on commit c3d314b

Please sign in to comment.