remove unused initialization

This commit is contained in:
Arne Morten Kvarving
2019-10-14 08:53:12 +02:00
committed by Markus Blatt
parent 5f9d67a6eb
commit 7b3b26c452
4 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ namespace {
segIndCB.push_back(segIndex);
int newSInd = segIndex;
const auto& origBranchNo = segSet[segIndex].branchNumber();
bool endOrigBranch = true;
bool endOrigBranch;
// loop down branch to find all segments in branch and number from "toe" to "heel"
while (newSInd < segSet.size()) {
endOrigBranch = true;

View File

@@ -875,7 +875,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
zb = zt + sumKdir(i, j, dims, dz);
double xt=-999;
double xb=-999;
double xb;
if (j == (dims[1]-1) ) {
xt = sumIdir(i, j, 0, dims, dx);

View File

@@ -171,7 +171,7 @@ namespace Opm {
for (int i = segment1; i <= segment2; ++i) {
// for the first or the only segment in the range is the one specified in the WELSEGS
// from the second segment in the range, the outlet segment is the previous segment in the range
int outlet_segment = -1;
int outlet_segment;
if (i == segment1) {
outlet_segment = outlet_segment_readin;
} else {

View File

@@ -63,7 +63,7 @@ namespace Opm {
throw std::invalid_argument(msg);
}
auto cmode = ProducerCMode::CMODE_UNDEFINED;
ProducerCMode cmode;
if (effectiveHistoryProductionControl(this->whistctl_cmode) )
cmode = this->whistctl_cmode;