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

Cause nc_create() to return NC_ENOTBUILT if user requests un-built feature like netCDF4 or CDF5 #658

Conversation

edhartnett
Copy link
Contributor

@edhartnett edhartnett commented Nov 17, 2017

Fixes #392.

This PR changes some behavior. Incorrect create mode flags that were previously ignored will now trigger errors.

For example, attempting to use NC_NETCDF4 in a library built with --disable-netcdf4 will currently be ignored. A classic file will be created.

After this PR, an NC_ENOTBUILT error is returned instead.

I am not married to these changes, I only put them in in response to user ticket and discussion. So if you don't want to make this change, just explain that in #392 and close the ticket.

This PR was inadvertantly closed when my last batch of changes were merged, but these changes were not part of that batch. I want to make sure that @WardF and @DennisHeimbigner have a good understanding of how library behavior will change with this PR.

@edhartnett edhartnett changed the title Ejh notbuilt errors Cause nc_create() to return NC_ENOTBUILT if user requests un-built feature like netCDF4 or CDF5 Nov 18, 2017
@edhartnett
Copy link
Contributor Author

@WardF and @DennisHeimbigner you guys OK with these changes?

If so I will merge this PR into my next mega-PR.

@WardF
Copy link
Member

WardF commented Dec 4, 2017

Looks good to me, what do you think @DennisHeimbigner?

@WardF WardF added this to the 4.5.1 milestone Dec 4, 2017
@DennisHeimbigner
Copy link
Collaborator

I am ok with it.

@edhartnett
Copy link
Contributor Author

OK, I will merge this into my other open PR so they can be done at the same time.

Thanks!

@edhartnett
Copy link
Contributor Author

I have merged this into #711. I will take this PR down now.

@edhartnett edhartnett closed this Dec 4, 2017
@edhartnett edhartnett deleted the ejh_notbuilt_errors branch December 20, 2017 10:09
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.

Try create a NetCDF4 file using NetCDF ibrary built with --disable-netcdf-4
3 participants