default max iteration number of SSI to be 100

10 was too small.
This commit is contained in:
Kai Bao
2023-09-29 23:13:17 +02:00
parent cdae1534de
commit c3e061cab1
2 changed files with 4 additions and 4 deletions

View File

@@ -1127,7 +1127,7 @@ protected:
const bool newton_afterwards, const int verbosity)
{
// Determine max. iterations based on if it will be used as a standalone flash or as a pre-process to Newton (or other) method.
const int maxIterations = newton_afterwards ? 3 : 10;
const int maxIterations = newton_afterwards ? 3 : 100;
// Store cout format before manipulation
std::ios_base::fmtflags f(std::cout.flags());
@@ -1169,7 +1169,7 @@ protected:
}
// Print iteration info
if (verbosity == 2 || verbosity == 4) {
if (verbosity == 2 || verbosity >= 4) {
int prec = 5;
int fugWidth = (prec + 3);
int convWidth = prec + 9;
@@ -1184,7 +1184,7 @@ protected:
}
// Check convergence
if (convFugRatio.two_norm() < 1e-6){
if (convFugRatio.two_norm() < 1e-6) {
// Restore cout format
std::cout.flags(f);

View File

@@ -166,7 +166,7 @@ namespace Opm {
Comp2::name(),
};
assert(0 <= compIdx && compIdx < 3);
assert(compIdx < 3);
return name[compIdx];
}