remove unused variables

This commit is contained in:
Arne Morten Kvarving 2022-09-09 08:42:48 +02:00
parent 8d3984571a
commit 45844b6422
4 changed files with 2 additions and 10 deletions

View File

@ -1218,8 +1218,6 @@ try
fracFlowRatioTestvalue = fracFlowRatioPoints[pointidx];
double accPhasePerm = 0.0; // accumulated, can be used for debugging
double maxPhasePerm = 0.0;
vector<double> phasePermValues;
@ -1301,7 +1299,6 @@ try
zero(cellperm);
if (! anisotropic_input) {
double cellPhasePerm = max(minPhasePerm, phasePermValues[cell_idx]);
accPhasePerm += cellPhasePerm;
double kval = max(minPhasePerm, cellPhasePerm);
cellperm(0,0) = kval;
cellperm(1,1) = kval;
@ -1312,7 +1309,6 @@ try
phasePermValuesDiag[cell_idx][0] = max(minPhasePerm, phasePermValuesDiag[cell_idx][0]);
phasePermValuesDiag[cell_idx][1] = max(minPhasePerm, phasePermValuesDiag[cell_idx][1]);
phasePermValuesDiag[cell_idx][2] = max(minPhasePerm, phasePermValuesDiag[cell_idx][2]);
accPhasePerm += phasePermValuesDiag[cell_idx][0]; // not correct anyway
cellperm(0,0) = phasePermValuesDiag[cell_idx][0];
cellperm(1,1) = phasePermValuesDiag[cell_idx][1];
cellperm(2,2) = phasePermValuesDiag[cell_idx][2];

View File

@ -511,7 +511,7 @@ namespace Opm
// First pass: enumerate internal faces.
int cellno = 0; fpos.push_back(0);
int tot_ncf = 0, tot_ncf2 = 0, max_ncf = 0;
int tot_ncf = 0, max_ncf = 0;
for (CI c = cellbegin(); c != cellend(); ++c, ++cellno) {
const int c0 = c->index();
assert((0 <= c0) && (c0 < nc) && (cell[c0] == -1));
@ -534,7 +534,6 @@ namespace Opm
fpos.push_back(int(faces.size()));
max_ncf = std::max(max_ncf, ncf);
tot_ncf += ncf;
tot_ncf2 += ncf * ncf;
}
assert(cellno == nc);

View File

@ -147,7 +147,6 @@ namespace Opm
const UnstructuredGrid& c_grid=*mygrid_.c_grid();
#endif
int hf_ind=0;
int bf_ind=0;
periodic_cells_.resize(0);
periodic_faces_.resize(0);
periodic_hfaces_.resize(0);
@ -166,7 +165,6 @@ namespace Opm
// Compute cell[1], cell_sat[1]
FIt nbface = f;
if (f->boundary()) {
bf_ind+=1;
if (b.satCond(*f).isPeriodic()) {
nbface = bid_to_face[b.getPeriodicPartner(f->boundaryId())];
assert(nbface != f);

View File

@ -963,7 +963,7 @@ namespace Opm {
// First pass: enumerate internal faces.
int cellno = 0; fpos.push_back(0);
int tot_ncf = 0, tot_ncf2 = 0;
int tot_ncf = 0;
for (CI c = g.cellbegin(); c != g.cellend(); ++c, ++cellno) {
const int c0 = c->index();
assert((0 <= c0) && (c0 < nc) && (cell[c0] == -1));
@ -988,7 +988,6 @@ namespace Opm {
fpos.push_back(int(faces.size()));
max_ncf_ = std::max(max_ncf_, ncf);
tot_ncf += ncf;
tot_ncf2 += ncf * ncf;
}
assert (cellno == nc);