Skip to content

Commit

Permalink
fix some compiler warnings for fasbit utility
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Nov 27, 2017
1 parent b81d3e6 commit e935005
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/fastbit/adios_index_fastbit.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "public/adios.h"
#include "public/adios_read.h"
#include <iapi.h>
Expand Down Expand Up @@ -321,7 +322,7 @@ void onMultiBlock(int rank, ADIOS_FILE* f, ADIOS_VARINFO* v, int timestep, int b
int i=0;

char selName[100];
sprintf(selName, "block-%d", blockStart, blockEnd);
sprintf(selName, "block-%d..%d", blockStart, blockEnd);

uint64_t blockSizeArray[blockEnd-blockStart];

Expand Down Expand Up @@ -424,7 +425,7 @@ void processData(void* data, uint64_t dataCount, int rank, int timestep, char* s
defineFastbitVar(1, keyVarName, &var_ids_key, adios_double, &nk, 0, 0);
defineFastbitVar(1, offsetName, &var_ids_offset, adios_long, &no, 0, 0);

printf("bms[0] = %" PRIu64 ", bms[1]=%" PRIu64 " \n", bms[0], bms[1]);
printf("bms[0] = %" PRIu32 ", bms[1]=%" PRIu32 " \n", bms[0], bms[1]);
//var_ids_bms = defineAdiosVar(bmsVarName, adios_unsigned_integer, nb, 0, 0);
//var_ids_key = defineAdiosVar(keyVarName, adios_double, nk, 0, 0);
//var_ids_offset = defineAdiosVar(offsetName, adios_long, no, 0, 0);
Expand Down

0 comments on commit e935005

Please sign in to comment.