Skip to content

Commit

Permalink
test development
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed May 4, 2018
1 parent 1b18922 commit 435aff2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/cunit/test_darray_fill.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ int main(int argc, char **argv)
int test_type[NUM_TYPES] = {PIO_INT};
for (int t = 0; t < NUM_TYPES; t++)
{

/* Determine what result we should expect. */
for (int i = 0; i < MAPLEN; i++)
expected[i] = i % 2 ? my_rank * MAPLEN + i + 1 : int_fill;
Expand Down Expand Up @@ -153,6 +152,8 @@ int main(int argc, char **argv)
* available ways. */
for (int fmt = 0; fmt < num_flavors; fmt++)
{
PIO_Offset type_size;

/* Put together filename. */
sprintf(filename, "%s_%d_%d.nc", TEST_NAME, flavor[fmt], rearranger[r]);

Expand All @@ -177,6 +178,10 @@ int main(int argc, char **argv)
if ((ret = PIOc_sync(ncid)))
return ret;

/* What is size of type? */
if ((ret = PIOc_inq_type(ncid, test_type[t], NULL, &type_size)))
return ret;

/* Read the data. */
if ((ret = PIOc_read_darray(ncid, varid, rioid, MAPLEN, data_in)))
return ret;
Expand Down

0 comments on commit 435aff2

Please sign in to comment.