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

The max dimension sizes do not take CDF-5 format into account. #187

Merged
merged 4 commits into from
Jan 8, 2016

Conversation

DennisHeimbigner
Copy link
Collaborator

NetCDF-c Github issue #185

The code in libsrc/dim.c has not been upgraded to support
CDF-5 format.

Rule we are implementing sets the max dimension sizes as follows:

Classic: CDF-1 NC_MAX_INT - 3 = 2147483647 - 3
64 bit Offset: CDF-2 NC_MAX_UINT - 3 = 4294967295 - 3
64 bit Data: CDF-5 NC_MAX_UINT64 - 3 = 18446744073709551615 - 3

The -3 is to handle rounding.

NetCDF-c Github issue #185

The code in libsrc/dim.c has not been upgraded to support
CDF-5 format.

Rule we are implementing sets the max dimension sizes as follows:

Classic:	CDF-1	NC_MAX_INT - 3    = 2147483647 - 3
64 bit Offset:	CDF-2	NC_MAX_UINT - 3	  =  4294967295 - 3
64 bit Data:	CDF-5	NC_MAX_UINT64 - 3 = 18446744073709551615 - 3

The -3 is to handle rounding.
@WardF
Copy link
Member

WardF commented Jan 6, 2016

@dmh I'm not sure if you get automatic notifications, but it looks like there were some failures when this pull request was checked by travis. I'll investigate in a bit as well, unless the solution pops right out at you; currently I'm working on #186.

@WardF WardF modified the milestones: 4.4.1, 4.4.0 Jan 6, 2016
@DennisHeimbigner
Copy link
Collaborator Author

I got it, but cannot figure out yet why it works
when I run cmake, but fails under travis.
=Dennis

Ward Fisher wrote:

@dmh I'm not sure if you get automatic notifications, but it looks like there were some failures when this pull request was checked by travis. I'll investigate in a bit as well, unless the solution pops right out at you; currently I'm working on #186.


Reply to this email directly or view it on GitHub:
#187 (comment)

@WardF
Copy link
Member

WardF commented Jan 6, 2016

Poking around on this a bit, the failure on travis is in the tst_dimsizes.sh test when run via autotools/make check. It appears that in CMake, the tst_dimsizes.c file is compiled and run, but the tst_dimsizes shell script does not. I'm going to wire that in by hand (it's easy to do) and see if the test then starts to fail on cmake as well.

@WardF
Copy link
Member

WardF commented Jan 6, 2016

The first issue appears to be that tst_dimsizes.sh does not have the executable bit set; other errors are reported once it runs, but that at least is the initial problem :).

@WardF
Copy link
Member

WardF commented Jan 6, 2016

I'm also seeing, in the docker container, the following when I run the script:

./tst_dimsizes.sh: 24: test: ../ncdump/ncdump: unexpected operator

So perhaps test doesn't like how it is being invoked? Not sure.

@WardF
Copy link
Member

WardF commented Jan 8, 2016

Looks good, thanks for your help with this @dmh. #186 Is corrected as well, so hopefully we're in position to get 4.4.0 pretty quickly.

WardF added a commit that referenced this pull request Jan 8, 2016
The max dimension sizes do not take CDF-5 format into account.
@WardF WardF merged commit a4d826e into master Jan 8, 2016
@DennisHeimbigner DennisHeimbigner deleted the issue185 branch January 13, 2016 21:21
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.

2 participants