Reorder loops to resemble future processing
We will look at the presence of keywords first, and then for each keyword determine which wells it applies to.
This commit is contained in:
parent
441fd2825b
commit
c630220e6f
@ -685,7 +685,6 @@ void BlackoilEclipseOutputWriter::writeInit(const SimulatorTimer &timer) {
|
||||
// (e.g. "WOPR") in the input files, and only for those wells that are
|
||||
// mentioned in those keywords
|
||||
const int numWells = eclipseParser_.getWELSPECS().welspecs.size();
|
||||
for (int whichWell = 0; whichWell != numWells; ++whichWell) {
|
||||
for (int phaseCounter = 0;
|
||||
phaseCounter != BlackoilPhases::MaxNumPhases;
|
||||
++phaseCounter) {
|
||||
@ -695,6 +694,7 @@ void BlackoilEclipseOutputWriter::writeInit(const SimulatorTimer &timer) {
|
||||
typeIndex < sizeof (WELL_TYPES) / sizeof (WELL_TYPES[0]);
|
||||
++typeIndex) {
|
||||
const WellType type = WELL_TYPES[typeIndex];
|
||||
for (int whichWell = 0; whichWell != numWells; ++whichWell) {
|
||||
// W{O,G,W}{I,P}R
|
||||
sum_->add (std::unique_ptr <EclipseWellReport> (
|
||||
new EclipseWellRate (*sum_,
|
||||
|
Loading…
Reference in New Issue
Block a user