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 1642ce2 commit 60e98ee
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions tests/cunit/test_darray_fill.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,23 @@ int main(int argc, char **argv)
if ((ret = get_iotypes(&num_flavors, flavor)))
ERR(ret);

for (int fv = 0; fv < NUM_TEST_CASES_FILLVALUE; fv++)
for (int r = 0; r < NUM_REARRANGERS_TO_TEST; r++)
{
#define NUM_TYPES 1
int test_type[NUM_TYPES] = {PIO_INT};
for (int t = 0; t < NUM_TYPES; t++)
/* Initialize the PIO IO system. This specifies how
* many and which processors are involved in I/O. */
if ((ret = PIOc_Init_Intracomm(test_comm, NUM_IO_PROCS, ioproc_stride, ioproc_start,
rearranger[r], &iosysid)))
return ret;

for (int fv = 0; fv < NUM_TEST_CASES_FILLVALUE; fv++)
{
void *expected;
expected = expected_int;
for (int r = 0; r < NUM_REARRANGERS_TO_TEST; r++)
#define NUM_TYPES 1
int test_type[NUM_TYPES] = {PIO_INT};
for (int t = 0; t < NUM_TYPES; t++)
{
/* Initialize the PIO IO system. This specifies how
* many and which processors are involved in I/O. */
if ((ret = PIOc_Init_Intracomm(test_comm, NUM_IO_PROCS, ioproc_stride, ioproc_start,
rearranger[r], &iosysid)))
return ret;

void *expected;
expected = expected_int;

/* /\* Initialize decompositions. *\/ */
if ((ret = PIOc_InitDecomp(iosysid, test_type[t], NDIM1, dim_len, maplen, wcompmap,
&wioid, &rearranger[r], NULL, NULL)))
Expand Down Expand Up @@ -218,9 +219,9 @@ int main(int argc, char **argv)
if ((ret = PIOc_finalize(iosysid)))
return ret;

} /* next rearranger */
} /* next type */
} /* next fill value test case */
} /* next type */
} /* next fill value test case */
} /* next rearranger */
} /* endif my_rank < TARGET_NTASKS */

/* Finalize the MPI library. */
Expand Down

0 comments on commit 60e98ee

Please sign in to comment.