silencing a shadowing warning related to shrate.

This commit is contained in:
paean 2015-10-19 07:53:27 +02:00
parent 33aa9e468d
commit 956b8fc633

View File

@ -172,10 +172,10 @@ namespace Opm
if (has_shrate_) { if (has_shrate_) {
siFactor = unitSystem.parse("1/Time")->getSIScaling(); siFactor = unitSystem.parse("1/Time")->getSIScaling();
DeckKeywordConstPtr shrateKeyword = deck->getKeyword("SHRATE"); DeckKeywordConstPtr shrateKeyword = deck->getKeyword("SHRATE");
std::vector<double> shrate = shrateKeyword->getSIDoubleData(); std::vector<double> shrate_readin = shrateKeyword->getSIDoubleData();
if (shrate.size() == 1) { if (shrate_readin.size() == 1) {
shrate_ = shrate[0]; shrate_ = shrate_readin[0];
} else if (shrate.size() == 0) { } else if (shrate_readin.size() == 0) {
shrate_ = 4.8; // default value shrate_ = 4.8; // default value
} else { } else {
OPM_THROW(std::logic_error, "Only NTPVT == 1 is allowed for SHRATE keyword now !\n"); OPM_THROW(std::logic_error, "Only NTPVT == 1 is allowed for SHRATE keyword now !\n");