*Properties(): Rename control mode (enum) variable

Four characters (cmod) is less readable than "cmode".

Suggested by: [at] joakim-hove
This commit is contained in:
Bård Skaflestad 2014-06-27 10:34:51 +02:00
parent cb3a196446
commit 1111f87aa7

View File

@ -183,10 +183,10 @@ namespace Opm {
mode = controlModes.begin(), end = controlModes.end();
mode != end; ++mode)
{
const WellProducer::ControlModeEnum cmod =
const WellProducer::ControlModeEnum cmode =
WellProducer::ControlModeFromString(*mode);
p.addProductionControl(cmod);
p.addProductionControl(cmode);
}
// BHP mode needs explicit value
@ -219,10 +219,10 @@ namespace Opm {
mode != end; ++mode)
{
if (! record->getItem(*mode)->defaultApplied()) {
const WellProducer::ControlModeEnum cmod =
const WellProducer::ControlModeEnum cmode =
WellProducer::ControlModeFromString(*mode);
p.addProductionControl(cmod);
p.addProductionControl(cmode);
}
}