Closed adcroft closed 4 years ago
Lots of \t
and \n
in these line length calculations, and AFAIK it's nonstandard to convert those into ASCII codes. (Gfortran only does it if you enable certain flags).
The problem seems to be that the len_trim intrinsic function gives different lengths for on tabs on different compilers. We are taking this into account when we replace tabs with a pair of spaces before writing messages in writeMessageAndDesc, at line 526 in MOM_document.F90. But we are not taking this into account when we determine where to automatically set new-lines on lines 502 and 506 of the same file.
For SIS2, this issue of non-reproducing documentation across compiler is being corrected in a PR that will come shortly by explicitly replacing the tabs in the offending parameter descriptions with two spaces, but there should also be modifications made in MOM_document.F90.
This issue has been addressed by https://github.com/NOAA-GFDL/MOM6/pull/1124.
gnu and intel produce consistent output but the PGI compiler has started leading to diffs, e.g.:
I have not had a chance to figure when the divergence happened.