Skip to content

Commit

Permalink
Merge pull request #2253 from pepijndevos/pv/defaultarg
Browse files Browse the repository at this point in the history
add default arguments to dummy derivatives
  • Loading branch information
YingboMa authored Sep 7, 2023
2 parents 80e1b95 + a8acb6a commit 0298a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structural_transformation/partial_state_selection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function dummy_derivative_graph!(state::TransformationState, jac = nothing;
dummy_derivative_graph!(state.structure, var_eq_matching, jac, state_priority, log)
end

function dummy_derivative_graph!(structure::SystemStructure, var_eq_matching, jac,
state_priority, ::Val{log} = Val(false)) where {log}
function dummy_derivative_graph!(structure::SystemStructure, var_eq_matching, jac = nothing,
state_priority = nothing, ::Val{log} = Val(false)) where {log}
@unpack eq_to_diff, var_to_diff, graph = structure
diff_to_eq = invview(eq_to_diff)
diff_to_var = invview(var_to_diff)
Expand Down

0 comments on commit 0298a95

Please sign in to comment.