overload @show for Params, Vars, Problem, TimeStepper
navidcy opened this issue · 2 comments
navidcy commented
We should overload @show
for Params
and Vars
struct.
Can we loop over the contents of a struct, e.g., Params
and printout all it's content variable names?
glwagner commented
Something along the lines of
print(io, Tuple("$p: $(getproperty(params, p)\n" for p in propertynames(params))...)
might do it