nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Fix poor formatting of default values when using --help-config #741

Closed einola closed 1 day ago

einola commented 1 day ago

Fix poor formatting of default values when using --help-config

Fixes #739

Task List


Change Description

Use a new function, ConfigurationHelp::toString() instead of std::to_string when building HelpMaps. The new function is just a wrapper around output << std::setprecision(n) << input, returning outpt.str().


Test Description

Run nextsim --help-config MEVPDynamics and note that the default value for MEVPDynamics.DeltaMin is 2e-09 and not 0.000000.


Documentation Impact

Better self-documentation!


Other Details

N/A


Pre-Request Checklist