adding two more parameters related to ms wells

to help to tune and improve the convergence.
This commit is contained in:
Kai Bao
2017-10-04 13:09:49 +02:00
parent fc64d34bc2
commit c3a368e58e
4 changed files with 14 additions and 3 deletions

View File

@@ -411,6 +411,8 @@ namespace Opm {
std::vector< Scalar > B_avg( numComp, Scalar() );
computeAverageFormationFactor(ebosSimulator, B_avg);
const int max_iter = param_.max_welleq_iter_;
int it = 0;
bool converged;
do {
@@ -442,7 +444,7 @@ namespace Opm {
updateWellControls(well_state);
initPrimaryVariablesEvaluation();
}
} while (it < 15);
} while (it < max_iter);
if (converged) {
if ( terminal_output_ ) {