This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Kengo, Thanks for the fix to the test program. I've verified your bug fix and pushed the fix to GitHub, so it will be in the next release. --Russ > I am trying installing netcdf-4.3.0 into a Linux machine with SPARC > processors. > The compiler I use is Fujitsu C compiler. > > When I performed “make check” command, I encountered a failure at > tst_converts2. > The messages written in nc_test4/tst_converts2.log were as follows: > > *** Testing more netcdf-4 data conversion. > *** Testing NC_BYTE conversions...ok. > *** Testing NC_USHORT conversions...Sorry! Unexpected result, > tst_converts2.c, line: 167 > > > I think the following changes should be added to nc_test4/tst_convert2.c: > > diff netcdf-4.3.0_orig/nc_test4/tst_converts2.c > netcdf-4.3.0_test/nc_test4/tst_converts2.c > 105,106c105,106 > < coord[3] = 100; > < if (nc_get_var1_ushort(ncid, varid, &coord[3], > --- > > coord[0] = 5; > > if (nc_get_var1_ushort(ncid, varid, coord, > 165,166c165,166 > < coord[3] = 100; > < if (nc_get_var1_ushort(ncid, varid, &coord[3], > --- > > coord[0] = 5; > > if (nc_get_var1_ushort(ncid, varid, coord, > > > When I added the above changes and then performed “make check”, > all of testing procedures ended successfully, > and the messages written in nc_test4/tst_converts2.log were as follows: > > *** Testing more netcdf-4 data conversion. > *** Testing NC_BYTE conversions...ok. > *** Testing NC_USHORT conversions...ok. > *** Testing MAX_INT conversions...ok. > *** Tests successful! > > > Thank you for your attention. > > Sincerely yours, > > Kengo Miyamoto > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: EVK-421055 Department: Support netCDF Priority: Normal Status: Closed