fix well Control Single-Phase

This commit is contained in:
Cintia Goncalves Machado 2020-11-23 18:40:37 +01:00
parent 4ae70ee12e
commit 82c8201f00

View File

@ -2125,6 +2125,9 @@ namespace Opm
}
} else {
std::fill(mix.begin(), mix.end(), 0.0);
if (num_comp == 1){
mix[num_comp-1] = 1.0;
}else{
// No flow => use well specified fractions for mix.
if (this->isInjector()) {
switch (this->wellEcl().injectorType()) {
@ -2163,6 +2166,7 @@ namespace Opm
}
}
}
// Compute volume ratio.
x = mix;