Skip to content

Commit baa707e

Browse files
committed
Added some flop count for operations.
1 parent 6ca1d68 commit baa707e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pflow/pflow.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,15 @@ PetscErrorCode PFLOWFunction(SNES snes, Vec X, Vec F, void *ctx) {
587587
if (bus == busf) { /* From bus */
588588
farr[locf] += line->pf;
589589
farr[locf + 1] += Vmf - line->Vf;
590+
flps += 3;
590591
} else {
591592
/* To bus */
592593
double loss;
593594
loss = line->loss0 + line->loss1 * line->pf;
594595
farr[loct] -= line->pf - loss;
595596
farr[loct + 1] += Vmt - line->Vt;
597+
flps += 6;
596598
}
597-
} else {
598-
/* For future use */
599599
}
600600
}
601601
}

0 commit comments

Comments
 (0)