mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
fixed: avoid unnecessary assignments
This commit is contained in:
parent
47f210140f
commit
bfbf727c92
@ -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));
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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:
|
||||
|
@ -888,7 +888,7 @@ void RelPermUpscaleHelper::upscaleCapillaryPressure()
|
||||
to_double(options["saturationThreshold"]);
|
||||
|
||||
auto largestSaturationInterval = Swor - Swir;
|
||||
auto Ptestvalue = Pcmax;
|
||||
decltype(Pcmax) Ptestvalue;
|
||||
|
||||
std::stringstream errstr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user