X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;ds=sidebyside;f=old_C_code%2Fstage1%2Fsrc%2FMPI_Main%2Fslave.c;h=d7d0afed531fa5cb8a25d104ab8ab3d0d55725b7;hb=3eef8d3df59ded9a281cff51f79fe824198a7427;hp=e66f599748322a585ae5fb1ff74cd17ffbe6d5e8;hpb=7709d507dfab9256a401f2c77ced7bc70d90fec3;p=epclust.git diff --git a/old_C_code/stage1/src/MPI_Main/slave.c b/old_C_code/stage1/src/MPI_Main/slave.c index e66f599..d7d0afe 100644 --- a/old_C_code/stage1/src/MPI_Main/slave.c +++ b/old_C_code/stage1/src/MPI_Main/slave.c @@ -20,7 +20,7 @@ static Result_t* do_work(Work_t* work) uint32_t nbSeries = work->nbSeries; uint32_t tsLength = get_tsLength(work->inputFileName); - uint32_t nbValues = (tsLength - 4) / 3; + uint32_t nbValues = (tsLength - 4) / 4; // nbReducedCoordinates = smallest power of 2 which is above nbValues uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));