@@ -140,7 +140,7 @@ int test_gdal(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank,
140140 {
141141 test_data_int [f ] = my_rank * 10 + f ;
142142 test_data_float [f ] = my_rank * 10 + f + 0.5 ;
143- test_data_double [f ] = my_rank * 100000 + f + 0.5 ;
143+ test_data_double [f ] = my_rank + f + 1 ;
144144 }
145145
146146 /* Use PIO to create the example file in each of the four
@@ -156,7 +156,7 @@ int test_gdal(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank,
156156
157157 assert (filename );
158158
159- test_data_in = test_data_float_in ;
159+ test_data_in = test_data_double_in ;
160160 /* Open the file. */
161161 if ((ret = GDALc_openfile (iosysid , & ncid2 , & hDSp , & iotype , filename , PIO_NOWRITE )))
162162 ERR (ret );
@@ -167,11 +167,11 @@ int test_gdal(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank,
167167 /* Read the data. */
168168 if ((ret = PIOc_read_darray (ncid2 , varid , ioid , arraylen , test_data_in )))
169169 ERR (ret );
170-
170+ printf ( "my_rank=%d arraylen=%lld \n" , my_rank , arraylen );
171171 /* Check the results. */
172172 for (int f = 0 ; f < arraylen ; f ++ )
173173 {
174- switch (pio_type )
174+ switch (pio_type )
175175 {
176176 case PIO_INT :
177177 if (test_data_int_in [f ] != test_data_int [f ])
@@ -182,6 +182,7 @@ int test_gdal(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank,
182182 return ERR_WRONG ;
183183 break ;
184184 case PIO_DOUBLE :
185+ printf ("Here on task %d pio_type=%d test_data_double[%d]=%f %f\n" , my_rank , pio_type , f , test_data_double [f ], test_data_double_in [f ]);
185186 if (test_data_double_in [f ] != test_data_double [f ])
186187 return ERR_WRONG ;
187188 break ;
@@ -279,7 +280,8 @@ int main(int argc, char **argv)
279280 /* Figure out iotypes. */
280281 if ((ret = get_iotypes (& num_flavors , flavor )))
281282 ERR (ret );
282-
283+ flavor [0 ] = PIO_IOTYPE_GDAL ;
284+ printf ("%d flavor is %d\n" ,num_flavors , flavor [0 ]);
283285 for (int r = 0 ; r < NUM_REARRANGERS_TO_TEST ; r ++ )
284286 {
285287 /* Initialize the PIO IO system. This specifies how
0 commit comments