Skip to content
Merged
Changes from all commits
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
21 changes: 16 additions & 5 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,22 @@ function showhead(file::FileList, head::BatsHead, io::IO = stdout)
print_field(io, "gencoord", head.gencoord; color = :yellow)

if head.neqpar > 0
print_field(io, "parameters", "[ " * join(head.eqpar, ", ") * " ]")
print(io, rpad("parameters:", 12))
if !isempty(head.param) && length(head.param) == length(head.eqpar)
for (i, (p, v)) in enumerate(zip(head.param, head.eqpar))
print(io, p, " = ", v)
if i < length(head.param)
print(io, ", ")
end
if i % 4 == 0 && i < length(head.param)
println(io)
print(io, " "^12)
end
end
else
print(io, "[ ", join(head.eqpar, ", "), " ]")
end
println(io)
end

print_field(io, "coordinates", "[ " * join(head.coord, ", ") * " ]")
Expand All @@ -585,10 +600,6 @@ function showhead(file::FileList, head::BatsHead, io::IO = stdout)
end
println(io)

if !isempty(head.param)
print_field(io, "params", "[ " * join(head.param, ", ") * " ]")
end

return
end

Expand Down
Loading