Commit 16425f11 authored by Podhorszki, Norbert's avatar Podhorszki, Norbert
Browse files

fix travis and appveyor error

parent 0e65d310
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,5 +2,5 @@
max-line-length = 80
max-complexity = 50
format = pylint
ignore = F403,F405,F999
ignore = F403,F405,F999,W504
exclude = thirdparty/
+3 −2
Original line number Diff line number Diff line
@@ -129,13 +129,14 @@ void BroadcastVector(std::vector<char> &vector, MPI_Comm mpiComm,
    }

    const int MAXBCASTSIZE = 1073741824;
    int blockSize = (inputSize > MAXBCASTSIZE ? MAXBCASTSIZE : inputSize);
    size_t blockSize = (inputSize > MAXBCASTSIZE ? MAXBCASTSIZE : inputSize);
    size_t sent = 0;
    size_t pos = 0;
    char *buffer = vector.data();
    while (inputSize > 0)
    {
        MPI_Bcast(buffer, blockSize, MPI_CHAR, rankSource, mpiComm);
        MPI_Bcast(buffer, static_cast<int>(blockSize), MPI_CHAR, rankSource,
                  mpiComm);
        buffer += blockSize;
        inputSize -= blockSize;
        blockSize = (inputSize > MAXBCASTSIZE ? MAXBCASTSIZE : inputSize);