Skip to content

Commit ff1e306

Browse files
authored
added to accept infinite (#1085)
1 parent 8b6d456 commit ff1e306

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/neqsim/processSimulation/util/report/Report.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public String generateJsonReport() {
110110
}
111111

112112
// Convert the final JsonObject to a JSON string with pretty printing
113-
Gson prettyGson = new GsonBuilder().setPrettyPrinting().create();
113+
Gson prettyGson = new GsonBuilder().serializeSpecialFloatingPointValues().setPrettyPrinting().create();
114114
return prettyGson.toJson(finalJsonObject);
115115
}
116116
}

src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ public void bubblePointPressureFlash(boolean derivatives) throws Exception {
13221322
operation.run();
13231323
if (Double.isNaN(system.getPressure()) || operation.isSuperCritical()) {
13241324
throw new neqsim.util.exception.IsNaNException(this.getClass().getSimpleName(),
1325-
"bubblePointPressureFlash", "Could not find solution - possible no dew point exists");
1325+
"bubblePointPressureFlash", "Could not find solution - possible no bubble point exists");
13261326
}
13271327
}
13281328

0 commit comments

Comments
 (0)