Skip to content

Commit 3343135

Browse files
committed
Fix JSON file output bug, should not have a trailing comma at the end.
1 parent b1401ec commit 3343135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ps/psoutput.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ PetscErrorCode PSSaveSolution_JSON(PS ps, const char outfile[]) {
827827
PrintJSONArray(fd, "LOAD", 2, &ps->sys_info.total_load[0], true);
828828
PrintJSONArray(fd, "LOADSHED", 2, &ps->sys_info.total_loadshed[0], true);
829829

830-
PrintJSONDouble(fd, "SolveRealTime", ps->solve_real_time, true);
830+
PrintJSONDouble(fd, "SolveRealTime", ps->solve_real_time, false);
831831

832832
PrintJSONObjectEnd(fd, false); // System summary object end
833833

0 commit comments

Comments
 (0)