Skip to content

Commit

Permalink
update (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored Dec 31, 2024
1 parent 0638602 commit 78c1560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RachfordRice implements Serializable {
static Logger logger = LogManager.getLogger(RachfordRice.class);
private static final long serialVersionUID = 1000;
private double[] beta = new double[2];
private static String method = "Nielsen2023"; // alternative use Nielsen2023 or Michelsen2001
private static String method = "Michelsen2001"; // alternative use Nielsen2023 or Michelsen2001

/**
* <p>
Expand Down Expand Up @@ -188,8 +188,7 @@ public double calcBetaMichelsen2001(double[] K, double[] z)
nybeta = 1.0 - betal;
}
step = gbeta / deriv;
} while (Math.abs(step) >= 1.0e-11 && (Math.abs(step) >= 1e-9 && iterations < 50)
&& iterations < maxIterations);
} while (Math.abs(step) >= 1.0e-11 && iterations < maxIterations);
if (nybeta <= tolerance) {
nybeta = tolerance;
} else if (nybeta >= 1.0 - tolerance) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public void stabilityAnalysis() {
int iter = 0;
double errOld = 1.0e100;
boolean useaccsubst = true;
int maxsucssubiter = 200;
int maxsucssubiter = 150;
int maxiter = 200;
do {
errOld = err;
Expand Down

0 comments on commit 78c1560

Please sign in to comment.