mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
dont check if group has converged in solveWellEq
This commit is contained in:
committed by
Atgeirr Flø Rasmussen
parent
f30ddffdb7
commit
70b7bed057
@@ -243,7 +243,7 @@ namespace Opm {
|
||||
void applyScaleAdd(const Scalar alpha, const BVector& x, BVector& Ax) const;
|
||||
|
||||
// Check if well equations is converged.
|
||||
ConvergenceReport getWellConvergence(const std::vector<Scalar>& B_avg) const;
|
||||
ConvergenceReport getWellConvergence(const std::vector<Scalar>& B_avg, const bool checkGroupConvergence = false) const;
|
||||
|
||||
// return the internal well state, ignore the passed one.
|
||||
// Used by the legacy code to make it compatible with the legacy well models.
|
||||
|
||||
@@ -1103,7 +1103,7 @@ namespace Opm {
|
||||
template<typename TypeTag>
|
||||
ConvergenceReport
|
||||
BlackoilWellModel<TypeTag>::
|
||||
getWellConvergence(const std::vector<Scalar>& B_avg) const
|
||||
getWellConvergence(const std::vector<Scalar>& B_avg, bool checkGroupConvergence) const
|
||||
{
|
||||
|
||||
Opm::DeferredLogger local_deferredLogger;
|
||||
@@ -1132,10 +1132,12 @@ namespace Opm {
|
||||
}
|
||||
}
|
||||
|
||||
const int reportStepIdx = ebosSimulator_.episodeIndex();
|
||||
const Group& fieldGroup = schedule().getGroup("FIELD", reportStepIdx);
|
||||
bool violated = checkGroupConstraints(fieldGroup, global_deferredLogger);
|
||||
report.setGroupConverged(!violated);
|
||||
if (checkGroupConvergence) {
|
||||
const int reportStepIdx = ebosSimulator_.episodeIndex();
|
||||
const Group& fieldGroup = schedule().getGroup("FIELD", reportStepIdx);
|
||||
bool violated = checkGroupConstraints(fieldGroup, global_deferredLogger);
|
||||
report.setGroupConverged(!violated);
|
||||
}
|
||||
return report;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user