Skip to content

Return errorsmatrix in convergence_test? #2749

@JoshuaLampert

Description

@JoshuaLampert

When running a convergence_test one often wants to put the results in a table that can be copy-pasted to a LaTeX document, e.g., for a paper, which means one probably wants to use PrettyTables.jl. However, with the current definition of convergence_test this is not so convenient because it only prints the full results (nicely formatted) to the screen, but only returns the eoc_values and not the errors itself, see

return eoc_mean_values

This means it is not so easy to simply run convergence_test and use the return values to create a table with PrettyTables.jl, which also contains error values. I see in repro repos (e.g. here) that convergence_test is not used, but rather an own convergence test is reimplemented. However, I do not want to reinvent the wheel all the time and would much rather like to reuse the functionality already defined in Trixi.jl. I would therefore either like convergence_test to also return errorsmatrix (like we already do, e.g., in DispersiveShallowWater.jl here) or maybe even better create an interface to PrettyTables.jl as an extension. Of course the first solution would be breaking. How do you feel about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions