parthenon-hpc-lab / parthenon

Parthenon AMR infrastructure
https://parthenon-hpc-lab.github.io/parthenon/
Other
105 stars 33 forks source link

[Breaking change] Remove NaN payload tags infrastructure #1108

Closed BenWibking closed 3 weeks ago

BenWibking commented 3 weeks ago

PR Summary

This removes the NaN payload tags infrastructure.

It is unused, and the unit test causes a runtime error with UndefinedBehaviorSanitizer. See https://github.com/parthenon-hpc-lab/parthenon/issues/1107.

PR Checklist

BenWibking commented 3 weeks ago

Well, replacing 1 / 0.0 with either std::numeric_limits<real_t>::signaling_NaN() or NAN (should be a quiet NaN) causes the test to fail... 🧐

lroberts36 commented 3 weeks ago

This feature has not ended up being used at all, so one solution would be to remove the test and utils/nan_payload_tag.hpp

pgrete commented 3 weeks ago

Do we envision any use in the (near) future? If not, then I'm in favor of removing unused code.