Home
last modified time | relevance | path

Searched refs:NBRANCH (Results 1 – 1 of 1) sorted by relevance

/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busdmnetwork.c21 #define NBRANCH 9 /* No. of branches in the 9 bus system */ macro
184 …PetscCall(PetscCalloc5(NBUS * nc, &bus, NGEN * nc, &gen, NLOAD * nc, &load, NBRANCH * nc + (nc - 1… in read_data()
263 PetscCall(PetscCalloc1(2 * NBRANCH * nc + 2 * (nc - 1), &edgelist)); in read_data()
267 for (j = 0; j < NBRANCH; j++) { in read_data()
331 for (j = 0; j < NBRANCH; j++) { in read_data()
990 if (rank == 0) numEdges = NBRANCH * nc + (nc - 1); in main()