mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
checking magnitude of the residual for convergence
in StandardWell_impl.
This commit is contained in:
parent
ddb21e1f2c
commit
168205a993
@ -1722,7 +1722,8 @@ namespace Opm
|
||||
|
||||
std::vector<Scalar> res(numComp);
|
||||
for (int comp = 0; comp < numWellEq; ++comp) {
|
||||
res[comp] = resWell_[0][comp];
|
||||
// magnitude of the residual matters
|
||||
res[comp] = std::abs(resWell_[0][comp]);
|
||||
}
|
||||
|
||||
Vector well_flux_residual(numComp);
|
||||
|
@ -237,8 +237,6 @@ namespace Opm {
|
||||
if (param_.solve_welleq_initially_ && iterationIdx == 0) {
|
||||
// solve the well equations as a pre-processing step
|
||||
report = solveWellEq(ebosSimulator, dt, well_state);
|
||||
std::cout << " solvWellEq is done ! " << std::endl;
|
||||
std::cin.ignore();
|
||||
}
|
||||
assembleWellEq(ebosSimulator, dt, well_state, false);
|
||||
|
||||
@ -989,8 +987,8 @@ namespace Opm {
|
||||
for (const auto& well : well_container_) {
|
||||
if ( !well->getWellConvergence(ebosSimulator, B_avg, param_) ) {
|
||||
converged_well = false;
|
||||
// break; // TODO: no need to check other wells?
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// TODO: to think about the output here.
|
||||
|
Loading…
Reference in New Issue
Block a user