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

Bug fix - Fixes issue if FillValue is NaN #341

Merged
merged 6 commits into from
Apr 5, 2022

Conversation

Benjamin-Gunn
Copy link
Collaborator

Fixes #323

Description:

Bug fix for the Nan FillValue.

Fixes issue

Fixes #323

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Tested with wrf NaN case.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Version tag

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

@hkershaw-brown hkershaw-brown self-requested a review April 1, 2022 22:10
Copy link
Member

@hkershaw-brown hkershaw-brown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix, thanks Benjamin.

I've been testing the fix on Cheyenne with several different compilers. (ifort, gfortran, nvfortran). One of the compilers (nvfortran) that people use on Cheyenne does not have an isnan function.

So let's replace isnan with ret_spvalR8 /= ret_spvalR8 to make the code work with all the Cheyenne compilers.

If you are interested, we have had some discussion of NaNs here #176
Once you have access to Cheyenne you will be able to try out the various compilers.

Cheers,
Helen

assimilation_code/modules/io/io_filenames_mod.f90 Outdated Show resolved Hide resolved
assimilation_code/modules/io/io_filenames_mod.f90 Outdated Show resolved Hide resolved
Benjamin-Gunn and others added 5 commits April 5, 2022 12:06
Co-authored-by: hkershaw-brown <20047007+hkershaw-brown@users.noreply.github.com>
Co-authored-by: hkershaw-brown <20047007+hkershaw-brown@users.noreply.github.com>
@hkershaw-brown hkershaw-brown merged commit 2d3f153 into NCAR:main Apr 5, 2022
@hkershaw-brown hkershaw-brown mentioned this pull request Oct 6, 2023
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Checking equality of _FillValues that are NaNs in io_filenames_mod causes DART to exit.
2 participants