Skip to content

Commit

Permalink
fixed warnings in pioc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jan 14, 2019
1 parent a94caac commit e5b74d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/clib/pioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ int PIOc_InitDecomp(int iosysid, int pio_type, int ndims, const int *gdimlen, in
iodesc->map[m] = compmap[iodesc->remap[m]];
for (int m=1; m < maplen; m++)
if (iodesc->map[m] < iodesc->map[m-1])
printf("%d: compmap[%d] %ld map[%d] %ld remap[%d] %d\n",ios->comp_rank, m, compmap[m], m, iodesc->map[m], m, iodesc->remap[m]);
printf("%d: compmap[%d] %lld map[%d] %lld remap[%d] %d\n",ios->comp_rank, m,
compmap[m], m, iodesc->map[m], m, iodesc->remap[m]);
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions tests/cunit/test_perf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ int test_perf1(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank,
* @param test_comm the communicator the test is running on.
* @returns 0 for success, error code otherwise.
*/
int test_all_darray(int iosysid, int num_flavors, int *flavor, int my_rank,
MPI_Comm test_comm)
int run_benchmark(int iosysid, int num_flavors, int *flavor, int my_rank,
MPI_Comm test_comm)
{
#define NUM_TYPES_TO_TEST 3
int ioid;
Expand Down Expand Up @@ -383,7 +383,7 @@ int main(int argc, char **argv)
return ret;

/* Run tests. */
if ((ret = test_all_darray(iosysid, num_flavors, flavor, my_rank, test_comm)))
if ((ret = run_benchmark(iosysid, num_flavors, flavor, my_rank, test_comm)))
return ret;

/* Finalize PIO system. */
Expand Down

0 comments on commit e5b74d1

Please sign in to comment.