diff --git a/opm/autodiff/BlackoilModelEbos.hpp b/opm/autodiff/BlackoilModelEbos.hpp index da0d22426..d20a76773 100644 --- a/opm/autodiff/BlackoilModelEbos.hpp +++ b/opm/autodiff/BlackoilModelEbos.hpp @@ -547,7 +547,7 @@ namespace Opm { //! constructor: just store a reference to a matrix WellModelMatrixAdapter (const M& A, const WellModel& wellMod, bool matrix_add_well_contributions, - const boost::any& parallelInformation = boost::any() ) + const boost::any& parallelInformation = boost::any() ) : A_( A ), wellMod_( wellMod ), comm_(), matrix_add_well_contributions_(matrix_add_well_contributions) { diff --git a/opm/autodiff/StandardWell_impl.hpp b/opm/autodiff/StandardWell_impl.hpp index 202227380..18b71e3f1 100644 --- a/opm/autodiff/StandardWell_impl.hpp +++ b/opm/autodiff/StandardWell_impl.hpp @@ -2111,16 +2111,18 @@ namespace Detail // B and C have 1 row, nc colums and nonzero // at (i,j) only if well i has perforation at cell j. - for(auto colC = duneC_[0].begin(), endC = duneC_[0].end(); colC != endC; ++colC) { + for ( auto colC = duneC_[0].begin(), endC = duneC_[0].end(); colC != endC; ++colC ) + { const auto row_index = colC.index(); auto& row = mat[row_index]; auto colB = duneB_[0].begin(); auto col = row.begin(); - for(auto colB = duneB_[0].begin(), endB = duneB_[0].end(); colB != endB; ++colB) { + for ( auto colB = duneB_[0].begin(), endB = duneB_[0].end(); colB != endB; ++colB ) + { const auto col_index = colB.index(); // Move col to index pj - while(col != row.end() && col.index() < col_index) ++col; + while ( col != row.end() && col.index() < col_index ) ++col; assert(col != row.end() && col.index() == col_index); Dune::FieldMatrix tmp; diff --git a/opm/autodiff/WellConnectionAuxiliaryModule.hpp b/opm/autodiff/WellConnectionAuxiliaryModule.hpp index f5bfcadeb..3c73fb51e 100644 --- a/opm/autodiff/WellConnectionAuxiliaryModule.hpp +++ b/opm/autodiff/WellConnectionAuxiliaryModule.hpp @@ -55,23 +55,25 @@ public: std::vector cartesianToCompressed(size, -1); auto begin = globalCell.begin(); - for(auto cell = begin, end= globalCell.end(); cell != end; ++cell) + for ( auto cell = begin, end= globalCell.end(); cell != end; ++cell ) { cartesianToCompressed[ *cell ] = cell - begin; } - int last_time_step = schedule.getTimeMap().size()-1; + int last_time_step = schedule.getTimeMap().size() - 1; const auto& schedule_wells = schedule.getWells(); wells_.reserve(schedule_wells.size()); // initialize the additional cell connections introduced by wells. - for (const auto well : schedule_wells) { + for ( const auto well : schedule_wells ) + { std::vector compressed_well_perforations; // All possible completions of the well const auto& completionSet = well->getCompletions(last_time_step); compressed_well_perforations.reserve(completionSet.size()); - for (size_t c=0; c