Resolve warnings/errors with extra warnings (#171)

This commit is contained in:
Jonathan R. Madsen
2022-09-28 14:28:32 -05:00
committato da GitHub
parent 2ed818449f
commit 4e3527f0ed
25 ha cambiato i file con 132 aggiunte e 135 eliminazioni
+3 -3
Vedi File
@@ -52,7 +52,7 @@ get_values_str(const Tp& _data)
for(auto&& itr : _data)
_ss << ", " << std::setw(6) << std::setprecision(2) << std::fixed << itr;
return _ss.str().substr(1);
};
}
template <typename Tp, size_t N>
auto
@@ -289,8 +289,8 @@ run_main(int argc, char** argv)
int n = 0;
const int ranks[7] = { 1, 2, 3, 5, 7, 11, 13 };
for(int rank : ranks)
if(rank < size) ++n;
for(int r : ranks)
if(r < size) ++n;
// Construct a group containing all of the prime ranks in world_group
MPI_Group prime_group;