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

Fix nc_redef() - when called twice on netcdf-4 file, it should return no error #1781

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Fix nc_redef() - when called twice on netcdf-4 file, it should return no error #1781

merged 3 commits into from
Jul 9, 2020

Conversation

edwardhartnett
Copy link
Contributor

@edwardhartnett edwardhartnett commented Jul 8, 2020

For classic files (or netCDF/HDF5 files with classic model), calling nc_redef() twice should and does result in NC_EINDEFINE error.

But, in accordance with the automatic handling of enddef/redef for netCDF/HDF5 files, extra calls to redef should just be ignored for netCDF/HDF5 files.

THis PR fixes this issue and makes the code work in accordance with the documentation.

Fixes #1779

@edwardhartnett edwardhartnett requested a review from WardF as a code owner July 8, 2020 17:13
@WardF WardF mentioned this pull request Jul 9, 2020
@WardF WardF merged commit 7d2a646 into Unidata:master Jul 9, 2020
@edwardhartnett edwardhartnett deleted the ejh_fix_redef branch July 10, 2020 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants