Lines Matching refs:junctions
426 Junction junctions = NULL; in WashNetworkCreate() local
478 PetscCall(PetscCalloc2(numVertices, &junctions, numEdges, &pipes)); in WashNetworkCreate()
482 junctions[i].id = i; in WashNetworkCreate()
483 junctions[i].type = JUNCTION; in WashNetworkCreate()
486 junctions[0].type = RESERVOIR; in WashNetworkCreate()
487 junctions[numVertices - 1].type = VALVE; in WashNetworkCreate()
520 PetscCall(PetscCalloc2(numVertices, &junctions, numEdges, &pipes)); in WashNetworkCreate()
523 junctions[i].id = i; in WashNetworkCreate()
524 junctions[i].type = JUNCTION; in WashNetworkCreate()
527 junctions[0].type = RESERVOIR; in WashNetworkCreate()
528 junctions[1].type = VALVE; in WashNetworkCreate()
529 junctions[2].type = VALVE; in WashNetworkCreate()
561 PetscCall(PetscCalloc2(numVertices, &junctions, numEdges, &pipes)); in WashNetworkCreate()
564 junctions[i].id = i; in WashNetworkCreate()
565 junctions[i].type = JUNCTION; in WashNetworkCreate()
568 junctions[0].type = RESERVOIR; in WashNetworkCreate()
569 junctions[1].type = VALVE; in WashNetworkCreate()
570 junctions[2].type = RESERVOIR; in WashNetworkCreate()
585 vtype[i] = junctions[v].type; in WashNetworkCreate()
594 wash->junction = junctions; in WashNetworkCreate()
612 Junction junctions, junction; in main() local
658 junctions = wash->junction; in main()
673 PetscCall(PetscCalloc2(vEnd - vStart, &junctions, nedges, &pipes)); in main()
689 … vEnd; v++) PetscCall(DMNetworkAddComponent(networkdm, v, KeyJunction, &junctions[v - vStart], 2)); in main()
839 if (rank) PetscCall(PetscFree2(junctions, pipes)); in main()