mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
changed name of tst_gfs_data_1.c to tst_compress_par.c
This commit is contained in:
parent
9cc39fe70f
commit
e8587b52a8
@ -61,8 +61,8 @@ run_bm_test2.log: tst_create_files.log
|
||||
|
||||
# This will run parallel I/O benchmarks for parallel builds.
|
||||
if TEST_PARALLEL4
|
||||
check_PROGRAMS += tst_gfs_data_1
|
||||
tst_gfs_data_1_LDFLAGS = -no-install
|
||||
check_PROGRAMS += tst_compress_par
|
||||
tst_compress_par_LDFLAGS = -no-install
|
||||
TESTS += run_par_bm_test.sh run_gfs_test.sh
|
||||
run_par_bm_test.log: tst_create_files.log run_bm_test1.log
|
||||
endif # TEST_PARALLEL4
|
||||
|
@ -2,9 +2,11 @@
|
||||
Copyright 2020, UCAR/Unidata See COPYRIGHT file for copying and
|
||||
redistribution conditions.
|
||||
|
||||
This program tests and benchmarks netcdf-4 parallel I/O using the
|
||||
same access pattern as is used by NOAA's GFS when writing and
|
||||
reading model data. See:
|
||||
This program tests and benchmarks netcdf-4 parallel I/O doing
|
||||
compression.
|
||||
|
||||
This program tries to use the same access pattern as is used by
|
||||
NOAA's GFS when writing and reading model data. See:
|
||||
https://github.com/Unidata/netcdf-fortran/issues/264.
|
||||
|
||||
Also see the file gfs_sample.cdl to see what is being produced by
|
||||
@ -28,7 +30,7 @@
|
||||
#include <netcdf_par.h>
|
||||
#include <netcdf_meta.h>
|
||||
|
||||
#define TEST_NAME "tst_gfs_data_1"
|
||||
#define TEST_NAME "tst_compress_par"
|
||||
#define NUM_META_VARS 7
|
||||
#define NUM_META_TRIES 2
|
||||
#define NDIM2 2
|
||||
@ -608,7 +610,8 @@ main(int argc, char **argv)
|
||||
{
|
||||
for(i = 0; i < data_count[3]; i++)
|
||||
{
|
||||
value_data[cnt] = (-1 * i%2) * my_rank * 1000 + cnt / sqrt(my_rank + cnt + 1) - (-1 * i%3 * i);
|
||||
/* value_data[cnt] = (-1 * i%2) * my_rank * 1000 + cnt / sqrt(my_rank + cnt + 1) - (-1 * i%3 * i); */
|
||||
value_data[cnt] = (-1 * i%2) * my_rank * 1000 + cnt / sqrt(my_rank + cnt + 1);
|
||||
/* printf("%d: value_data[%ld] %g\n", my_rank, cnt, value_data[cnt]); */
|
||||
cnt++;
|
||||
}
|
Loading…
Reference in New Issue
Block a user