Skip to content

Commit d38fe96

Browse files
committed
update eclipse
1 parent c6d51ca commit d38fe96

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/main/java/neqsim/thermo/util/readwrite/EclipseFluidReadWrite.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public class EclipseFluidReadWrite {
3232
* setComposition.
3333
* </p>
3434
*
35-
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
36-
* @param inputFile a {@link java.lang.String} object
35+
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
36+
* @param inputFile a {@link java.lang.String} object
3737
* @param pseudoNameIn a {@link java.lang.String} object
3838
*/
3939
public static void setComposition(SystemInterface fluid, String inputFile, String pseudoNameIn) {
@@ -46,7 +46,7 @@ public static void setComposition(SystemInterface fluid, String inputFile, Strin
4646
* setComposition.
4747
* </p>
4848
*
49-
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
49+
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
5050
* @param inputFile a {@link java.lang.String} object
5151
*/
5252
public static void setComposition(SystemInterface fluid, String inputFile) {
@@ -121,7 +121,7 @@ public static void setComposition(SystemInterface fluid, String inputFile) {
121121
* read.
122122
* </p>
123123
*
124-
* @param inputFile a {@link java.lang.String} object
124+
* @param inputFile a {@link java.lang.String} object
125125
* @param pseudoNameIn a {@link java.lang.String} object
126126
* @return a {@link neqsim.thermo.system.SystemInterface} object
127127
*/
@@ -263,6 +263,9 @@ public static SystemInterface read(String inputFile) {
263263
if (st.equals("BIC")) {
264264
int addedComps = 0;
265265
kij = new Double[names.size()][names.size()];
266+
for (Double[] row : kij) {
267+
Arrays.fill(row, 0.0);
268+
}
266269
int lengthLastLine = 0;
267270
List<String> list = new ArrayList<String>();
268271
while ((st = br.readLine().replace("/", "")) != null && addedComps < names.size() - 1) {
@@ -376,7 +379,7 @@ public static SystemInterface read(String inputFile) {
376379
for (int j = i; j < names.size(); j++) {
377380
for (int phaseNum = 0; phaseNum < fluid.getMaxNumberOfPhases(); phaseNum++) {
378381
((PhaseEosInterface) fluid.getPhase(phaseNum)).getMixingRule()
379-
.setBinaryInteractionParameter(i, j, kij[i][j]);
382+
.setBinaryInteractionParameter(i, j, kij[i][j].doubleValue());
380383
((PhaseEosInterface) fluid.getPhase(phaseNum)).getMixingRule()
381384
.setBinaryInteractionParameter(j, i, kij[i][j]);
382385
}

0 commit comments

Comments
 (0)