Skip to content

Commit

Permalink
fix error flash
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Nov 26, 2023
1 parent a07be98 commit d39c594
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1190,9 +1190,9 @@ public void stabilityAnalysis2() {
}
}
} while ((Math.abs(err) > 1e-9 || err > errOld) && iter < 200);
if (iter > maxiter-2) {
// System.out.println("too many iterations....." + err + " temperature "
// + system.getTemperature("C") + " C " + system.getPressure("bara") + " bara");
if (iter > 198) {
// System.out.println("too many iterations....." + err + " temperature "
// + system.getTemperature("C") + " C " + system.getPressure("bara") + " bara");
new Exception("to many iterations ");
}
// logger.info("err: " + err + " ITER " + iter);
Expand All @@ -1211,7 +1211,7 @@ public void stabilityAnalysis2() {
xTrivialCheck0 += Math.abs(x[j][i] - system.getPhase(0).getComponent(i).getx());
xTrivialCheck1 += Math.abs(x[j][i] - system.getPhase(1).getComponent(i).getx());
}
if (iter >= maxiter-1) {
if (iter >= 199) {
logger.info("iter > maxiter multiphase stability ");
logger.info("error " + Math.abs(err));
logger.info("tm: " + tm[j]);
Expand Down

0 comments on commit d39c594

Please sign in to comment.