Skip to content

Commit

Permalink
update version (#1177)
Browse files Browse the repository at this point in the history
* update version

* update version

* update
  • Loading branch information
EvenSol authored Nov 12, 2024
1 parent 2c26392 commit b3b051d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 26 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<version>${revision}${sha1}${changelist}</version>

<properties>
<revision>3.0.4</revision>
<revision>3.0.5</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sha1/>
Expand Down
2 changes: 1 addition & 1 deletion pomJava21.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<version>${revision}${sha1}${changelist}</version>

<properties>
<revision>3.0.4</revision>
<revision>3.0.5</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sha1/>
Expand Down
2 changes: 1 addition & 1 deletion pomJava8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<version>${revision}${sha1}${changelist}-Java8</version>

<properties>
<revision>3.0.4</revision>
<revision>3.0.5</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sha1 />
Expand Down
24 changes: 7 additions & 17 deletions src/main/java/neqsim/process/equipment/util/Calculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Calculator(String name) {
* </p>
*
* @param unit a {@link neqsim.process.equipment.ProcessEquipmentInterface}
* object
* object
*/
public void addInputVariable(ProcessEquipmentInterface unit) {
inputVariable.add(unit);
Expand All @@ -60,21 +60,10 @@ public ProcessEquipmentInterface getOutputVariable() {
return outputVariable;
}

/** {@inheritDoc} */
@Override
public boolean needRecalculation() {
Iterator<ProcessEquipmentInterface> iter = inputVariable.iterator();
while (iter.hasNext()) {
ProcessEquipmentInterface str = iter.next();
if (!str.solved()) {
return true;
}
}
return false;
}

/**
* <p>runAntiSurgeCalc.</p>
* <p>
* runAntiSurgeCalc.
* </p>
*
* @param id a {@link java.util.UUID} object
*/
Expand All @@ -95,7 +84,7 @@ public void runAntiSurgeCalc(UUID id) {
flowInAntiSurge = 1e-6;
}

anitSurgeSplitter.setFlowRates(new double[] {-1, flowInAntiSurge}, "MSm3/day");
anitSurgeSplitter.setFlowRates(new double[] { -1, flowInAntiSurge }, "MSm3/day");
anitSurgeSplitter.run();
anitSurgeSplitter.setCalculationIdentifier(id);
}
Expand Down Expand Up @@ -142,7 +131,8 @@ public void run(UUID id) {
* </p>
*
* @param outputVariable a
* {@link neqsim.process.equipment.ProcessEquipmentInterface} object
* {@link neqsim.process.equipment.ProcessEquipmentInterface}
* object
*/
public void setOutputVariable(ProcessEquipmentInterface outputVariable) {
this.outputVariable = outputVariable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void setm(double val) {
double[] acentricConstants = {-0.176, 1.574, (0.48 - this.m)};
solve.setConstants(acentricConstants);
getComponent().setAcentricFactor(solve.solve(0.25));
System.out.println("solve accen " + getComponent().getAcentricFactor());
// System.out.println("solve accen " + getComponent().getAcentricFactor());
}

/** {@inheritDoc} */
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/neqsim/thermo/system/AcidTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public void testAcid() {
testSystem.setMixingRule(10);
ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem);
testOps.TPflash();
testSystem.prettyPrint();
}

/**
Expand Down Expand Up @@ -85,7 +84,6 @@ public void testtestBubpAcid() {
assertEquals(0.0155, boundvol);
assertEquals(41917.0, assenergy);
assertEquals(0.3338, m);
testSystem.prettyPrint();
}


Expand Down Expand Up @@ -138,7 +136,6 @@ public void testtestBubpAceticAcid() {
assertEquals(0.00452, boundvol);
assertEquals(40323.0, assenergy);
assertEquals(0.4644000000000, m, 0.0001);
testSystem.prettyPrint();
}

/**
Expand Down Expand Up @@ -175,7 +172,6 @@ public void testtestWater() {
assertEquals(0.0692, boundvol);
assertEquals(16655.0, assenergy);
assertEquals(.6735900000000007, m, 0.00001);
testSystem.prettyPrint();
}

/**
Expand Down Expand Up @@ -212,6 +208,5 @@ public void testtestMEG() {
assertEquals(0.0141, boundvol);
assertEquals(19752.0, assenergy);
assertEquals(0.6743999999999983, m);
testSystem.prettyPrint();
}
}

0 comments on commit b3b051d

Please sign in to comment.