Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Mar 12, 2018
1 parent 38230b3 commit d513eac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
3 changes: 0 additions & 3 deletions src/clib/pio_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,13 @@ int PIOc_sync(int ncid)
wmulti_buffer *wmb, *twmb;

LOG((3, "PIOc_sync checking buffers"));

wmb = &file->buffer;
while (wmb)
{
/* If there are any data arrays waiting in the
* multibuffer, flush it. */
if (wmb->num_arrays > 0)
flush_buffer(ncid, wmb, true);

twmb = wmb;
wmb = wmb->next;
if (twmb == &file->buffer)
Expand Down Expand Up @@ -465,7 +463,6 @@ int PIOc_sync(int ncid)
return check_mpi2(ios, NULL, mpierr, __FILE__, __LINE__);
if (ierr)
return check_netcdf2(ios, NULL, ierr, __FILE__, __LINE__);
PIOc_set_log_level(0);

return ierr;
}
12 changes: 4 additions & 8 deletions src/clib/pio_getput_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ int PIOc_get_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
* num_elem will remain 1). */
for (int vd = 0; vd < ndims; vd++)
num_elem *= count[vd];
LOG((1, "PIOc_get_vars_tc num_elem = %d", num_elem));
LOG((2, "PIOc_get_vars_tc num_elem = %d", num_elem));
}

/* If async is in use, and this is not an IO task, bcast the parameters. */
Expand Down Expand Up @@ -583,7 +583,7 @@ int PIOc_get_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
mpierr = MPI_Bcast(&num_elem, 1, MPI_OFFSET, ios->compmaster, ios->intercomm);
if (!mpierr)
mpierr = MPI_Bcast(&typelen, 1, MPI_OFFSET, ios->compmaster, ios->intercomm);
LOG((1, "PIOc_get_vars_tc ncid = %d varid = %d ndims = %d start_present = %d "
LOG((2, "PIOc_get_vars_tc ncid = %d varid = %d ndims = %d start_present = %d "
"count_present = %d stride_present = %d xtype = %d num_elem = %d", ncid, varid,
ndims, start_present, count_present, stride_present, xtype, num_elem));
}
Expand Down Expand Up @@ -937,17 +937,13 @@ int PIOc_put_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
return check_netcdf(file, ierr, __FILE__, __LINE__);
}

LOG((2, "ndims = %d typelen = %d", ndims, typelen));

/* How many elements of data? If no count array was passed,
* this is a scalar. */
if (count)
for (int vd = 0; vd < ndims; vd++)
num_elem *= count[vd];

LOG((1, "ndims = %d typelen = %d num_elem %d", ndims, typelen, num_elem));
if (count)
for (int vd = 0; vd < ndims; vd++)
LOG((1, "count[%d] = %d",vd,count[vd]));

}

/* If async is in use, and this is not an IO task, bcast the parameters. */
Expand Down
2 changes: 0 additions & 2 deletions src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ int my_rank;
FILE *LOG_FILE = NULL;
#endif /* PIO_ENABLE_LOGGING */

int mycnt=0;

/**
* The PIO library maintains its own set of ncids. This is the next
* ncid number that will be assigned.
Expand Down
2 changes: 1 addition & 1 deletion tests/cunit/test_async_multicomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char **argv)

/* Initialize test. */
if ((ret = pio_test_init2(argc, argv, &my_rank, &ntasks, TARGET_NTASKS, TARGET_NTASKS,
3, &test_comm)))
-1, &test_comm)))
ERR(ERR_INIT);

/* Is the current process a computation task? */
Expand Down

0 comments on commit d513eac

Please sign in to comment.