Skip to content

Commit 68cb4f9

Browse files
authored
Do not report CPU solve time any more (#108) (#110)
1 parent b501e12 commit 68cb4f9

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

include/private/opflowimpl.h

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ struct _p_OPFLOW {
299299

300300
/** @brief OPFLOWSolve time */
301301
PetscLogDouble solve_real_time;
302-
PetscLogDouble solve_cpu_time;
303302

304303
/** @brief number of nonzeros used with HiOP MDS */
305304
PetscInt nnz_eqjacsp, nnz_ineqjacsp, nnz_hesssp;

include/private/psimpl.h

-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ struct _p_PS {
456456
PetscBool setupcalled; /* Is setup called on PS? */
457457

458458
PetscLogDouble solve_real_time;
459-
PetscLogDouble solve_cpu_time;
460459
};
461460

462461
extern PetscErrorCode PSCheckTopology(PS);

src/opflow/interface/opflow.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,6 @@ PetscErrorCode OPFLOWSetUp(OPFLOW opflow) {
19011901
CHKERRQ(ierr);
19021902

19031903
opflow->solve_real_time = 0.0;
1904-
opflow->solve_cpu_time = 0.0;
19051904

19061905
/* Compute area participation factors */
19071906
ierr = PSComputeParticipationFactors(ps);
@@ -2029,7 +2028,6 @@ PetscErrorCode OPFLOWSolve(OPFLOW opflow) {
20292028
CHKERRQ(ierr);
20302029

20312030
opflow->solve_real_time = real2 - real1;
2032-
opflow->solve_cpu_time = cpu2 - cpu1;
20332031

20342032
PetscFunctionReturn(0);
20352033
}
@@ -2987,7 +2985,6 @@ PetscErrorCode OPFLOWSetSummaryStats(OPFLOW opflow) {
29872985
CHKERRQ(ierr);
29882986

29892987
ps->solve_real_time = opflow->solve_real_time;
2990-
ps->solve_cpu_time = opflow->solve_cpu_time;
29912988

29922989
PetscFunctionReturn(0);
29932990
}

src/ps/ps.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,6 @@ PetscErrorCode PSCreate(MPI_Comm mpicomm, PS *psout) {
795795
ps->setupcalled = PETSC_FALSE;
796796

797797
ps->solve_real_time = 0.0;
798-
ps->solve_cpu_time = 0.0;
799798

800799
*psout = ps;
801800
PetscFunctionReturn(0);

src/ps/psoutput.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ PetscErrorCode PSSaveSolution_MATPOWER(PS ps, const char outfile[]) {
271271

272272
fprintf(fd, "\n%%%% solve time\n");
273273
fprintf(fd, "%ssolve_time = %.5g;\n", prefix, ps->solve_real_time);
274-
fprintf(fd, "%ssolve_cpu_time = %.5g;\n", prefix, ps->solve_cpu_time);
275274

276275
fclose(fd);
277276
PetscFunctionReturn(0);
@@ -831,7 +830,6 @@ PetscErrorCode PSSaveSolution_JSON(PS ps, const char outfile[]) {
831830
PrintJSONArray(fd, "LOADSHED", 2, &ps->sys_info.total_loadshed[0], true);
832831

833832
PrintJSONDouble(fd, "SolveRealTime", ps->solve_real_time, true);
834-
PrintJSONDouble(fd, "SolveCPUTime", ps->solve_cpu_time, false);
835833

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

@@ -887,7 +885,6 @@ PetscErrorCode PSSaveSolution_MINIMAL(PS ps, const char outfile[]) {
887885
fprintf(fd, "\tTotal Load Shed P, Q: %9g, %9g\n",
888886
ps->sys_info.total_loadshed[0], ps->sys_info.total_loadshed[1]);
889887
fprintf(fd, "\tSolve Time: %5g\n", ps->solve_real_time);
890-
fprintf(fd, "\tSolve CPU Time: %5g\n", ps->solve_cpu_time);
891888

892889
fclose(fd);
893890

0 commit comments

Comments
 (0)