Skip to content

Commit

Permalink
fixed return status due incorrect input files
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk12 committed Jun 30, 2021
1 parent ea837d1 commit 966cd1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/fastmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ int main_mem(int argc, char *argv[])
if (is_o)
fclose(aux.fp);
delete aux.fmi;
kclose(ko);
// kclose(ko);
return 1;
}
// fp = gzopen(argv[optind + 1], "r");
Expand Down Expand Up @@ -924,7 +924,7 @@ int main_mem(int argc, char *argv[])
fclose(aux.fp);
delete aux.fmi;
kclose(ko);
kclose(ko2);
// kclose(ko2);
return 1;
}
// fp2 = gzopen(argv[optind + 2], "r");
Expand Down
24 changes: 13 additions & 11 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,18 @@ int main(int argc, char* argv[])
fprintf(stderr, "ERROR: unknown command '%s'\n", argv[1]);
return 1;
}

fprintf(stderr, "\nImportant parameter settings: \n");
fprintf(stderr, "\tBATCH_SIZE: %d\n", BATCH_SIZE);
fprintf(stderr, "\tMAX_SEQ_LEN_REF: %d\n", MAX_SEQ_LEN_REF);
fprintf(stderr, "\tMAX_SEQ_LEN_QER: %d\n", MAX_SEQ_LEN_QER);
fprintf(stderr, "\tMAX_SEQ_LEN8: %d\n", MAX_SEQ_LEN8);
fprintf(stderr, "\tSEEDS_PER_READ: %d\n", SEEDS_PER_READ);
fprintf(stderr, "\tSIMD_WIDTH8 X: %d\n", SIMD_WIDTH8);
fprintf(stderr, "\tSIMD_WIDTH16 X: %d\n", SIMD_WIDTH16);
fprintf(stderr, "\tAVG_SEEDS_PER_READ: %d\n", AVG_SEEDS_PER_READ);

if (ret == 0) {
fprintf(stderr, "\nImportant parameter settings: \n");
fprintf(stderr, "\tBATCH_SIZE: %d\n", BATCH_SIZE);
fprintf(stderr, "\tMAX_SEQ_LEN_REF: %d\n", MAX_SEQ_LEN_REF);
fprintf(stderr, "\tMAX_SEQ_LEN_QER: %d\n", MAX_SEQ_LEN_QER);
fprintf(stderr, "\tMAX_SEQ_LEN8: %d\n", MAX_SEQ_LEN8);
fprintf(stderr, "\tSEEDS_PER_READ: %d\n", SEEDS_PER_READ);
fprintf(stderr, "\tSIMD_WIDTH8 X: %d\n", SIMD_WIDTH8);
fprintf(stderr, "\tSIMD_WIDTH16 X: %d\n", SIMD_WIDTH16);
fprintf(stderr, "\tAVG_SEEDS_PER_READ: %d\n", AVG_SEEDS_PER_READ);
}

return 0;
return ret;
}

0 comments on commit 966cd1e

Please sign in to comment.