Skip to content

Commit

Permalink
added no size option
Browse files Browse the repository at this point in the history
  • Loading branch information
pratas committed Jan 20, 2023
1 parent 4057fb6 commit a2ce2fe
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lr.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,13 @@ void LocalRedundancy(LR_PARAMETERS *MAP)
char *name = (char *) malloc(size + 1 * sizeof(char));
sprintf(name, "%s%"PRIu64".txt", P->prefix, idx_cum);
OP[idx_cum] = Fopen(name, "w");
//fprintf(OP[idx_cum], "#Length %"PRIu64" (id: %"PRIu64" )\n",
//c_array[idx_cum]-c_array[idx_cum-1], idx_cum);
fprintf(OP[idx_cum], "#Length %"PRIu64"\n",
c_array[idx_cum]-c_array[idx_cum-1]);
if(!P->nosize)
{
//fprintf(OP[idx_cum], "#Length %"PRIu64" (id: %"PRIu64" )\n",
//c_array[idx_cum]-c_array[idx_cum-1], idx_cum);
fprintf(OP[idx_cum], "#Length %"PRIu64"\n",
c_array[idx_cum]-c_array[idx_cum-1]);
}
}

for(idx_cum = 1 ; idx_cum <= S->idx ; ++idx_cum) // FOR EACH INTERVAL
Expand Down

0 comments on commit a2ce2fe

Please sign in to comment.