Public Service Announcement: Skywalker and floating point digits #226
Labels
cross-validation
Comparisons between Fortran and C++ MAM4 implementations
PSA
A purely information issue
Back in the summer of '22, @overfelt and I decided to put a limit on the number of digits output by Skywalker. These limits are:
You can find the relevant line in Skywalker here.
Up until now, these precision limits haven't really come up as an issue with our cross validation against Fortran implementations. However, today @pressel encountered a case in validating the water uptake parameterization in which the Fortran YAML and Python data files that we compare against actually exceed the limits. It was confusing for both of us until we realized that Skywalker was capping the number of digits when writing out the mam4xx data module.
It's kind of surprising that it took us this long to encounter this kind of situation. Kyle and I both feel that this is not a big deal and that we can continue our work with the current limits in place within Skywalker. It's something that we should all be aware of, though, at the very least, so we're documenting it here and in Kyle's above-linked PR.
Let us know if you have questions or concerns about this!
@overfelt @pbosler @singhbalwinder @jaelynlitz @mjs271 @odiazib @cameronrutherford
The text was updated successfully, but these errors were encountered: