diff --git a/src/communication/gathered_vector.hpp b/src/communication/gathered_vector.hpp index 9c83f74430a5564096604f3daf2b7aeda90c4b86..cf48192f628b665713a25b2b1a53f0df3af86936 100644 --- a/src/communication/gathered_vector.hpp +++ b/src/communication/gathered_vector.hpp @@ -30,7 +30,7 @@ public: /// the number of entries in the gathered vector in partiion i count_type count(std::size_t i) const { - return partition_[i+1] - partition[i]; + return partition_[i+1] - partition_[i]; } /// the values in the gathered vector diff --git a/tests/global_communication/mpi_listener.hpp b/tests/global_communication/mpi_listener.hpp index a88aa68440a555949c6bd6ae3c68224cf6a40b0a..e33aaebb5cea2168baead70e3418567c10bcdd6e 100644 --- a/tests/global_communication/mpi_listener.hpp +++ b/tests/global_communication/mpi_listener.hpp @@ -32,8 +32,8 @@ private: int size_; std::ofstream fid_; char buffer_[1024]; - bool test_case_failures_; - bool test_case_tests_; + int test_case_failures_; + int test_case_tests_; int test_failures_; bool does_print() const { diff --git a/tests/unit/test_algorithms.cpp b/tests/unit/test_algorithms.cpp index e00da203627a6906ce8be99f435709ad9a09a1d2..7c4f9a12a717cd9929fa7ec3de14157b9c88affb 100644 --- a/tests/unit/test_algorithms.cpp +++ b/tests/unit/test_algorithms.cpp @@ -1,3 +1,4 @@ +#include <random> #include <vector> #include "gtest.h"