fixed: avoid unnecessary assignments

This commit is contained in:
Arne Morten Kvarving 2019-07-10 09:43:13 +02:00
parent 47f210140f
commit bfbf727c92
5 changed files with 5 additions and 5 deletions

View File

@ -276,7 +276,7 @@ try
const double minPerm = atof(options["minPerm"].c_str());
const double maxPerm = atof(options["maxPerm"].c_str());
const double minPoro = atof(options["minPoro"].c_str());
start = clock();
//start = clock();
helper.sanityCheckInput(deck, minPerm, maxPerm, minPoro);
const Opm::DeckRecord& specgridRecord(deck.getKeyword("SPECGRID").getRecord(0));

View File

@ -429,7 +429,7 @@ try
// Upscale capillary pressure function
Opm::MonotCubicInterpolator WaterSaturationVsCapPressure;
double largestSaturationInterval = Swor-Swir;
double Ptestvalue = Pcmax;
double Ptestvalue;
while (largestSaturationInterval > (Swor-Swir)/double(nsatpoints)) {
if (Pcmax == Pcmin) {
// This is a dummy situation, we go through once and then

View File

@ -543,7 +543,7 @@ try
double largestSaturationInterval = Swor-Swir;
double Ptestvalue = Pcmax;
double Ptestvalue;
vector<MonotCubicInterpolator> watersaturation_rocktype;
for (unsigned int satidx=0; satidx <= maxSatnum; ++satidx) {

View File

@ -822,7 +822,7 @@ try
cout << "Upscaling resistivity for Pc = " << Ptestvalue;
flush(cout);
start = clock();
//start = clock();
// Loop over each cell again to find saturations given this particular
// capillary pressure:

View File

@ -888,7 +888,7 @@ void RelPermUpscaleHelper::upscaleCapillaryPressure()
to_double(options["saturationThreshold"]);
auto largestSaturationInterval = Swor - Swir;
auto Ptestvalue = Pcmax;
decltype(Pcmax) Ptestvalue;
std::stringstream errstr;