Changeset 704

Show
Ignore:
Timestamp:
10/30/09 10:47:58 (3 weeks ago)
Author:
robl
Message:

clean up warnings

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/header.c

    r698 r704  
    11201120  NCtype type = NC_UNSPECIFIED; 
    11211121  NC_var **vpp, **end; 
    1122   int i; 
    11231122 
    11241123  assert(gbp != NULL && gbp->pos != NULL); 
  • trunk/src/lib/mpinetcdf.c

    r698 r704  
    2323const char * 
    2424ncmpi_inq_libvers(void) { 
    25   return "version = 1.1.0 of 26 October 2009"; 
     25  return "version = 1.1.0 of 28 October 2009"; 
    2626} 
    2727 
     
    1326713267static int 
    1326813268ncmpi_coll_wait(NCMPI_Request request) { 
    13269   if (request->rw_flag == 1) 
    13270   return (ncmpi_put_vara_all(request->ncid, request->varid, 
     13269  int ret; 
     13270  if (request->rw_flag == 1) { 
     13271    ret = ncmpi_put_vara_all(request->ncid, request->varid, 
     13272                   request->start, request->count, 
     13273                   request->buf, request->bufcount, 
     13274                   request->vartype); 
     13275  } else if ( request->rw_flag == 0) { 
     13276    ret = (ncmpi_get_vara_all(request->ncid, request->varid, 
    1327113277                   request->start, request->count, 
    1327213278                   request->buf, request->bufcount, 
    1327313279                   request->vartype)); 
    13274   if (request->rw_flag == 0) 
    13275   return (ncmpi_get_vara_all(request->ncid, request->varid, 
    13276                    request->start, request->count, 
    13277                    request->buf, request->bufcount, 
    13278                    request->vartype)); 
    13279  
     13280  } else { 
     13281          ret = NC_EFILE; 
     13282  } 
     13283  return ret; 
    1328013284} 
    1328113285 
  • trunk/src/libf/waitallf.c

    r698 r704  
    2828    int ierr; 
    2929    NCMPI_Request *l2_req; 
    30     int i,j; 
     30    int i; 
    3131    lnc_req *tmp_req = NULL; 
    3232    l2_req = malloc((*v1)*sizeof(NCMPI_Request)); 
  • trunk/test/mcoll_perf/mcoll_perf.c

    r694 r704  
    2929int main(int argc, char **argv) 
    3030{ 
    31     MPI_Datatype newtype; 
    3231    int i, j, array_of_gsizes[3],array_of_distribs[3]; 
    3332    int order, nprocs, len, **buf, mynod; 
    3433    MPI_Offset bufcount; 
    3534    int array_of_dargs[3], array_of_psizes[3]; 
    36     MPI_File fh; 
    3735    int status; 
    38     MPI_Offset starts[3], sizes[3], array_of_starts[3]; 
    39     double stim, write_time, *new_write_tim, write_bw; 
    40     MPI_Offset file_size; 
     36    MPI_Offset sizes[3], array_of_starts[3]; 
     37    double write_time, *new_write_tim; 
    4138    double start_time, open_time, def_time, run_time; 
    4239    double *new_open_tim, *new_def_tim, *new_run_tim; 
    43     double read_tim, new_read_tim, read_bw; 
    4440    char *pathname, filename[50]; 
    4541    char dimname[20], varname[20]; 
     
    5450    int length; 
    5551    int mvar_flag = 0; 
    56     NCMPI_Request request; 
    5752    NCMPI_Request *array_of_requests; 
    5853    int unlimit_flag; 
     
    329324      } 
    330325 
    331       fprintf(stderr, "mvar nvars:%d, Global array size %d x %d x %d integers, local array size: %d x %d x%d, filesize:%d\n", nvars, array_of_gsizes[0], array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2], file_size); 
     326      fprintf(stderr, "mvar nvars:%d, Global array size %d x %d x %d integers, local array size: %d x %d x%d\n", nvars, array_of_gsizes[0], array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2]); 
    332327      fprintf(stderr, "%dx%dx%d, %d: nvars:%d, loop:%d, k:%d, open_t = %f, def_t =%f, write_t = %f sec,run_t = %f sec\n", sizes[0], sizes[1], sizes[2],mvar_flag, nvars, k_loop, top, new_open_tim[top], new_def_tim[top], new_write_tim[top], new_run_tim[top]);  
    333328    } 
  • trunk/test/mcoll_perf/single_mcoll_perf_non_record.c

    r694 r704  
    2929int main(int argc, char **argv) 
    3030{ 
    31     MPI_Datatype newtype; 
    3231    int i, j, array_of_gsizes[3],array_of_distribs[3]; 
    3332    int order, nprocs, len, **buf, mynod; 
    3433    MPI_Offset bufcount; 
    3534    int array_of_dargs[3], array_of_psizes[3]; 
    36     MPI_File fh; 
    3735    int status; 
    38     MPI_Offset starts[3], sizes[3], array_of_starts[3]; 
    39     double stim, write_time, *new_write_tim, write_bw; 
    40     MPI_Offset file_size; 
     36    MPI_Offset sizes[3], array_of_starts[3]; 
     37    double write_time, *new_write_tim; 
    4138    double start_time, open_time, def_time, run_time; 
    4239    double *new_open_tim, *new_def_tim, *new_run_tim; 
    43     double read_tim, new_read_tim, read_bw; 
    4440    char *pathname, filename[50]; 
    4541    char dimname[20], varname[20]; 
     
    5450    int length; 
    5551    int mvar_flag = 0; 
    56     NCMPI_Request request; 
    5752    NCMPI_Request *array_of_requests; 
    5853 
     
    322317      } 
    323318 
    324       fprintf(stderr, "one non-record variable ntimes:%d, Global array size (%d x %d) x %d x %d integers, local array size: %d x %d x %d, filesize:%d\n", ntimes, array_of_gsizes[0], ntimes, array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2], file_size); 
     319      fprintf(stderr, "one non-record variable ntimes:%d, Global array size (%d x %d) x %d x %d integers, local array size: %d x %d x %d\n", ntimes, array_of_gsizes[0], ntimes, array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2]); 
    325320      fprintf(stderr, "%dx%dx%d, %d: ntimes:%d, loop:%d, k:%d, open_t = %f, def_t =%f, write_t = %f sec,run_t = %f sec\n", sizes[0], sizes[1], sizes[2],mvar_flag, ntimes, k_loop, top, new_open_tim[top], new_def_tim[top], new_write_tim[top], new_run_tim[top]);  
    326321    } 
  • trunk/test/mcoll_perf/single_mcoll_perf_record.c

    r694 r704  
    2929int main(int argc, char **argv) 
    3030{ 
    31     MPI_Datatype newtype; 
    3231    int i, j, array_of_gsizes[3],array_of_distribs[3]; 
    3332    int order, nprocs, len, **buf, mynod; 
    3433    MPI_Offset bufcount; 
    3534    int array_of_dargs[3], array_of_psizes[3]; 
    36     MPI_File fh; 
    3735    int status; 
    38     MPI_Offset starts[3], sizes[3], array_of_starts[3]; 
    39     double stim, write_time, *new_write_tim, write_bw; 
    40     MPI_Offset file_size; 
     36    MPI_Offset  sizes[3], array_of_starts[3]; 
     37    double write_time, *new_write_tim; 
    4138    double start_time, open_time, def_time, run_time; 
    4239    double *new_open_tim, *new_def_tim, *new_run_tim; 
    43     double read_tim, new_read_tim, read_bw; 
    4440    char *pathname, filename[50]; 
    4541    char dimname[20], varname[20]; 
     
    5450    int length; 
    5551    int mvar_flag = 0; 
    56     NCMPI_Request request; 
    5752    NCMPI_Request *array_of_requests; 
    5853 
     
    321316      } 
    322317 
    323       fprintf(stderr, "one record variable ntimes:%d, Global array size (%d x %d) x %d x %d integers, local array size: %d x %d x%d, filesize:%d\n", ntimes, array_of_gsizes[0], ntimes, array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2], file_size); 
     318      fprintf(stderr, "one record variable ntimes:%d, Global array size (%d x %d) x %d x %d integers, local array size: %d x %d x%d\n", ntimes, array_of_gsizes[0], ntimes, array_of_gsizes[1], array_of_gsizes[2],sizes[0], sizes[1], sizes[2]); 
    324319      fprintf(stderr, "%dx%dx%d, %d: ntimes:%d, loop:%d, k:%d, open_t = %f, def_t =%f, write_t = %f sec,run_t = %f sec\n", sizes[0], sizes[1], sizes[2],mvar_flag, ntimes, k_loop, top, new_open_tim[top], new_def_tim[top], new_write_tim[top], new_run_tim[top]);  
    325320    }