Skip to content

Commit

Permalink
update (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored May 27, 2024
1 parent 0bc690d commit 212c388
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public void runCalc() {
double volumeCorrection = 0.0;
cummulativeMolePercDepleted = new double[pressures.length];
double totalNumberOfMoles = getThermoSystem().getTotalNumberOfMoles();
getThermoSystem().setTemperature(temperature, temperatureUnit);
if (!Double.isNaN(temperature)) {
getThermoSystem().setTemperature(temperature, temperatureUnit);
}

for (int i = 0; i < pressures.length; i++) {
getThermoSystem().setPressure(pressures[i]);
Expand Down

0 comments on commit 212c388

Please sign in to comment.