Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize the output of tiny real values #302

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Added code to harmonize differences in how different compilers format the output of tiny (< 1e-99) or huge (>= 1e100) real values. All answers are bitwise identical, but output could change with the PGI compiler for any cases that are writing out such extreme values.

  Added code to harmonize differences in how different compilers format the
output of tiny (< 1e-99) or huge (>= 1e100) real values.  All answers are
bitwise identical, but output could change with the PGI compiler for any cases
that are writing out such extreme values.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Jan 6, 2023
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #302 (964d415) into dev/gfdl (3cecac4) will decrease coverage by 0.00%.
The diff coverage is 38.88%.

@@             Coverage Diff              @@
##           dev/gfdl     #302      +/-   ##
============================================
- Coverage     37.07%   37.07%   -0.01%     
============================================
  Files           263      263              
  Lines         73656    73666      +10     
  Branches      13722    13727       +5     
============================================
+ Hits          27308    27310       +2     
- Misses        41310    41315       +5     
- Partials       5038     5041       +3     
Impacted Files Coverage Δ
src/framework/MOM_document.F90 73.14% <38.88%> (-1.19%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@adcroft
Copy link
Member

adcroft commented Jan 6, 2023

Have you tested the formatted output reads in correctly? The goal is to have a fixed output that also works as input.

@Hallberg-NOAA
Copy link
Member Author

Yes. I have recycled the revised lines from the output files back to the MOM_input files. This is how I tested that these changes also work for logging 1.0E+150 as well as 1.0E-150.

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/17896 ✔️

This restores the old answers, and (via @Hallberg-NOAA) is readable by PGI.

@marshallward marshallward merged commit d7d1351 into NOAA-GFDL:dev/gfdl Jan 7, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the tiny_param_document_bugfix branch February 2, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants