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
Add the final nonlinear residual to statistics file #1986
Comments
Why not do it unconditionally? Who cares whether the stat file gains another column? :-) |
I do, because it means I would have to update all of the scripts for plotting/tutorial slides, unless we always make it the last column. |
Hm, but that would mean that we can never add any new columns ever again :-( What do you use to create these plots? |
(I'm asking because we may be able to come up with a way to parse which column you need based on the header of the file...) |
gnuplot, usually. |
I'd just like to avoid that we have a parameter for each column in the stat file. Why should there be a parameter for the nonlinear residual but not for the number of inner M solver iterations? That seems silly. |
Okay, but then I would suggest adding parameters for the things that are not needed most of the time instead of unconditionally adding even more things. After all, many of the columns are just added by postprocessors, so it's designed in a way that they are optional. I find it difficult already to find a given column in that file (if I don't want to plot it but rather check if a certain value fits what I expect, such as for the test outputs), because there are more columns in one row than what fits on the screen. |
Would the following gnuplot command trickery help you?
The expressions are a bit complicated (and maybe I can make them easier to read), but at least the If you think something like this would help with writing the plotting scripts in a more portable way, then I'd be happy to put an explanation of this sort of thing into the manual. (Bonus points to anyone would has a simpler command than |
? |
Ha, I don't think I've ever heard of I think using
So, would something like this be useful in the manual? |
Yes, I think so. Ideally we would use it in the various scripts. We already use a different method in https://github.com/geodynamics/aspect/blob/master/benchmarks/blankenbach/get_statistics using gawk and sed. |
We should add an option that writes the final nonlinear residual of each time step as output into the statistics file. This is useful for checking if there were any time steps where the nonlinear solver did not converge, and allows for easy plotting, e.g. in gnuplot.
It was brought up in #1983.
The text was updated successfully, but these errors were encountered: