Skip to content

Commit

Permalink
Merge pull request #767 from OPM/feature/report-num-pinch-out
Browse files Browse the repository at this point in the history
Report the number of generated pinch-out connections.
  • Loading branch information
bska authored Oct 7, 2024
2 parents c212add + c4e06d6 commit a646efb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opm/grid/cpgrid/processEclipseFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@

#include <opm/grid/common/GeometryHelpers.hpp>
#include <opm/grid/cpgrid/Entity.hpp>
#include <opm/grid/cpgrid/Indexsets.hpp>
#include <opm/grid/cpgrid/Indexsets.hpp>

#include <opm/grid/cpgpreprocess/preprocess.h>
#include <opm/grid/MinpvProcessor.hpp>
#include <opm/grid/RepairZCORN.hpp>
#include <opm/grid/utility/StopWatch.hpp>

#include <fmt/format.h>

#include <cstddef>
#include <fstream>
#include <iostream>
Expand Down Expand Up @@ -312,6 +314,10 @@ namespace cpgrid
}
}

Opm::OpmLog::info(fmt::format("{} pinch-out connection{} generated",
nnc_cells[PinchNNC].size(),
(nnc_cells[PinchNNC].size() != 1)? "s" : ""));

// Add explicit NNCs.
const auto& nncs = ecl_state->getInputNNC();
for (const auto single_nnc : nncs.input()) {
Expand Down

0 comments on commit a646efb

Please sign in to comment.