Use integer for counter and cast to enumeration
This commit is contained in:
1 parent
2b1ad42b9e
commit
4a6e502869
1 file changed
+5
-3
@@ -632,9 +632,11 @@ void BlackoilEclipseOutputWriter::writeInit(const SimulatorTimer &timer) {
|
||||
// mentioned in those keywords
|
||||
const int numWells = eclipseParser_.getWELSPECS().welspecs.size();
|
||||
for (int whichWell = 0; whichWell != numWells; ++whichWell) {
|
||||
for (BlackoilPhases::PhaseIndex phase = static_cast<BlackoilPhases::PhaseIndex>(0);
|
||||
phase != BlackoilPhases::MaxNumPhases;
|
||||
++phase) {
|
||||
for (int phaseCounter = 0;
|
||||
phaseCounter != BlackoilPhases::MaxNumPhases;
|
||||
++phaseCounter) {
|
||||
const BlackoilPhases::PhaseIndex phase =
|
||||
static_cast <BlackoilPhases::PhaseIndex> (phaseCounter);
|
||||
for (int typeIndex = 0;
|
||||
typeIndex < sizeof (WELL_TYPES) / sizeof (WELL_TYPES[0]);
|
||||
++typeIndex) {
|
||||
|
||||
Reference in new issue
Block a user