Bugfix for regional runs when dycore is compiled in double precision#25
Conversation
…r bit-for-bit identical results on Cheyenne with Intel 19.1 and SGI MPT 2.19
Good catch. Thanks very much. Will cleanup! |
I fixed this - removed ibufexch entirely and used size(bufX) in the messages (since the count isn't known at the time the first MPI commands occur). I reran the tests on Cheyenne, it compiles and runs in DEBUG mode for both 32bit and 64bit without crashing, and the PROD runs in 64-bit give b4b identical results from run to run (which was the issue that triggered this PR in the first place). |
bensonr
left a comment
There was a problem hiding this comment.
Changes look consistent.
I would recommend some inline comments or even protection logic to ensure buffering/unbuffering goes as planned. Any future modification to the logic needs to understand index changes must be thoroughly tested - especially when packing multiple variables into the same buffer.
@bensonr does this look better? It still works on Cheyenne as expected. |
|
Associated PRs: For regression testing, see ufs-community/ufs-weather-model#155. |
updated RELEASE.md for the 2020.02 release (issue #25)
This PR fixes issue #24.
It also adds one additional line to the initial printout, which we found useful to make sure that all constants and tracers are set up correctly.