mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge branch 'v4.5.0-release-branch' into winpath.again.dmh
This commit is contained in:
commit
6a1876602b
@ -955,9 +955,7 @@ IF(ENABLE_LARGE_FILE_SUPPORT)
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /LARGEADDRESSAWARE")
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /LARGEADDRESSAWARE")
|
||||
ELSE()
|
||||
SET(_FILE_OFFSET_BITS 64)
|
||||
SET(_LARGEFILE64_SOURCE TRUE)
|
||||
SET(_LARGEFILE_SOURCE TRUE)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
@ -9,6 +9,7 @@ This file contains a high-level description of this package's evolution. Release
|
||||
|
||||
### 4.5.0-rc2 - TBD
|
||||
|
||||
* [Bug Fix] Addressed an issue with how cmake was implementing large file support on 32-bit systems. See [GitHub #385](https://github.com/Unidata/netcdf-c/issues/385) for more information.
|
||||
* [Bug Fix] Addressed an issue where ncgen would not respect keyword case. See [GitHub #310](https://github.com/Unidata/netcdf-c/issues/310) for more information.
|
||||
|
||||
### 4.5.0-rc1 - June 5, 2017
|
||||
|
@ -3,7 +3,7 @@
|
||||
See COPYRIGHT file for copying and redistribution conditions.
|
||||
|
||||
This is part of netCDF.
|
||||
|
||||
|
||||
This program also takes a long time to run - it writes some data in
|
||||
a very large file, and then reads it all back to be sure it's
|
||||
correct.
|
||||
@ -47,11 +47,13 @@ main(int argc, char **argv) {
|
||||
int n_dim;
|
||||
|
||||
#define NUMRECS 2
|
||||
#define I_LEN 5
|
||||
#if 0
|
||||
#define J_LEN 214700000
|
||||
#endif
|
||||
#define J_LEN 500000000
|
||||
#define I_LEN 4106
|
||||
//#define I_LEN 5
|
||||
//#if 0
|
||||
//#define J_LEN 214700000
|
||||
//#endif
|
||||
//#define J_LEN 500000000
|
||||
#define J_LEN 1023
|
||||
#define K_LEN 1023
|
||||
#define N_LEN 2
|
||||
|
||||
@ -157,7 +159,7 @@ main(int argc, char **argv) {
|
||||
check_err(stat,__LINE__,__FILE__);
|
||||
|
||||
{ /* read var1 */
|
||||
|
||||
|
||||
/*static float avar1[J_LEN];*/
|
||||
static float *avar1 = NULL;
|
||||
avar1 = (float*)malloc(sizeof(float)*J_LEN);
|
||||
@ -172,11 +174,11 @@ main(int argc, char **argv) {
|
||||
avar1_start[1] = i;
|
||||
stat = nc_get_vara_float(ncid, var1_id, avar1_start, avar1_count, avar1);
|
||||
check_err(stat,__LINE__,__FILE__);
|
||||
for(j=0; j<J_LEN; j++)
|
||||
for(j=0; j<J_LEN; j++)
|
||||
{
|
||||
if (avar1[j] != (float)(j + (rec + 1) * i)) {
|
||||
printf("Error on read, var1[%d, %d, %d] = %g wrong, "
|
||||
"should be %g !\n", rec, i, j, avar1[j], (float) (j + (rec + 1)* i));
|
||||
"should be %g !\n", rec, i, j, avar1[j], (float) (j + (rec + 1)* i));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user