From e2df1e981cc7ee8717c674c19647299f3e3f3ff8 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 19 May 2015 19:56:37 +0200 Subject: [PATCH] Add spaces around binaries and explicit braces. --- opm/core/linalg/ParallelIstlInformation.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opm/core/linalg/ParallelIstlInformation.hpp b/opm/core/linalg/ParallelIstlInformation.hpp index 95abc46c9..9f2c2200c 100644 --- a/opm/core/linalg/ParallelIstlInformation.hpp +++ b/opm/core/linalg/ParallelIstlInformation.hpp @@ -113,14 +113,16 @@ public: /// \param[out] indexSet The object to store the index set in. /// \param[out] remoteIndices The object to store the remote indices information in. void copyValuesTo(ParallelIndexSet& indexSet, RemoteIndices& remoteIndices, - std::size_t local_component_size=0, std::size_t num_components=1) const + std::size_t local_component_size = 0, std::size_t num_components = 1) const { ParallelIndexSet::GlobalIndex max_gi = local_component_size; if ( num_components > 1 ) { // component the max global index for( auto i = indexSet_->begin(), end = indexSet_->end(); i != end; ++i ) + { max_gi = std::max(max_gi, i->global()); + } ++max_gi; max_gi = communicator_.max(max_gi); }