Fix indentation and whitespace.

This commit is contained in:
Markus Blatt 2018-02-26 09:09:12 +01:00
parent 2e7313ac08
commit b5d55b9fb2
3 changed files with 13 additions and 9 deletions

View File

@ -2111,13 +2111,15 @@ namespace Detail
// B and C have 1 row, nc colums and nonzero // B and C have 1 row, nc colums and nonzero
// at (i,j) only if well i has perforation at cell j. // 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(); const auto row_index = colC.index();
auto& row = mat[row_index]; auto& row = mat[row_index];
auto colB = duneB_[0].begin(); auto colB = duneB_[0].begin();
auto col = row.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(); const auto col_index = colB.index();
// Move col to index pj // Move col to index pj
while ( col != row.end() && col.index() < col_index ) ++col; while ( col != row.end() && col.index() < col_index ) ++col;

View File

@ -65,13 +65,15 @@ public:
wells_.reserve(schedule_wells.size()); wells_.reserve(schedule_wells.size());
// initialize the additional cell connections introduced by wells. // initialize the additional cell connections introduced by wells.
for (const auto well : schedule_wells) { for ( const auto well : schedule_wells )
{
std::vector<int> compressed_well_perforations; std::vector<int> compressed_well_perforations;
// All possible completions of the well // All possible completions of the well
const auto& completionSet = well->getCompletions(last_time_step); const auto& completionSet = well->getCompletions(last_time_step);
compressed_well_perforations.reserve(completionSet.size()); compressed_well_perforations.reserve(completionSet.size());
for (size_t c=0; c<completionSet.size(); c++) { for ( size_t c=0; c < completionSet.size(); c++ )
{
const auto& completion = completionSet.get(c); const auto& completion = completionSet.get(c);
int i = completion.getI(); int i = completion.getI();
int j = completion.getJ(); int j = completion.getJ();