Skip to content

Commit

Permalink
Fix JSON file output bug, should not have a trailing comma at the end. (
Browse files Browse the repository at this point in the history
  • Loading branch information
abhyshr authored Dec 15, 2024
1 parent b1401ec commit 12d2968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ps/psoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ PetscErrorCode PSSaveSolution_JSON(PS ps, const char outfile[]) {
PrintJSONArray(fd, "LOAD", 2, &ps->sys_info.total_load[0], true);
PrintJSONArray(fd, "LOADSHED", 2, &ps->sys_info.total_loadshed[0], true);

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

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

Expand Down

0 comments on commit 12d2968

Please sign in to comment.