Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage #25

Merged
merged 5 commits into from
Jul 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
aux equations printing fix
  • Loading branch information
frnix committed Jun 30, 2022
commit a4597012c92165551047cfdaaac4e2c08523fdb4
7 changes: 4 additions & 3 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,12 @@ function fullprint(io::IO, model::Model)
print(io, " with ", length(model.auxeqns), " auxiliary equations")
end
print(io, ": \n")
function print_aux_eq(bi)
function print_aux_eq(bi)
v = model.auxeqns[bi]
for (_, ai) in filter(tv -> tv[2] > nvarshk, v.vinds)
for (var, ti) in keys(v.tsrefs)
ai = _index_of_var(var, model.allvars)
ci = ai - nvarshk
ci < bi && print_aux_eq(ci)
(1 <= ci < bi) && print_aux_eq(ci)
end
println(io, " |->A$bi: ", v)
end
Expand Down