Lines Matching refs:junction
112 Junction junction; in WASHIFunction() local
154 PetscCall(DMNetworkGetComponent(networkdm, v, 0, &type, (void **)&junction, NULL)); in WASHIFunction()
162 if (junction->type == RESERVOIR) { /* upstream reservoir */ in WASHIFunction()
193 PetscCall(DMNetworkGetComponent(networkdm, vfrom, 0, &type, (void **)&junction, NULL)); in WASHIFunction()
194 …PetscCheck(junction->type == JUNCTION || junction->type == RESERVOIR, PETSC_COMM_SELF, PETSC_ERR_S… in WASHIFunction()
202 PetscCall(DMNetworkGetComponent(networkdm, vto, 0, &type, (void **)&junction, NULL)); in WASHIFunction()
203 …PetscCheck(junction->type == JUNCTION || junction->type == VALVE, PETSC_COMM_SELF, PETSC_ERR_SUP, … in WASHIFunction()
234 Junction junction; in WASHSetInitialSolution() local
265 PetscCall(DMNetworkGetComponent(networkdm, vfrom, 0, &vkey, (void **)&junction, NULL)); in WASHSetInitialSolution()
266 if (junction->type == RESERVOIR) (xarr + offsetfrom)[1] = wash->H0; /* 1st H */ in WASHSetInitialSolution()
269 PetscCall(DMNetworkGetComponent(networkdm, vto, 0, &vkey, (void **)&junction, NULL)); in WASHSetInitialSolution()
270 if (junction->type == VALVE) (xarr + offsetto)[0] = wash->QL; /* last Q */ in WASHSetInitialSolution()
415 if (rank == 0) PetscCall(PetscFree2(wash->junction, wash->pipe)); in WashNetworkCleanUp()
594 wash->junction = junctions; in WashNetworkCreate()
612 Junction junctions, junction; in main() local
658 junctions = wash->junction; in main()
711 PetscCall(DMNetworkGetComponent(networkdm, cone[0], 0, &vkey, (void **)&junction, NULL)); in main()
712 junction->type = (VertexType)vtype[2 * e]; in main()
715 PetscCall(DMNetworkGetComponent(networkdm, cone[1], 0, &vkey, (void **)&junction, NULL)); in main()
716 junction->type = (VertexType)vtype[2 * e + 1]; in main()
765 PetscCall(DMNetworkGetComponent(networkdm, v, 0, &vkey, (void **)&junction, NULL)); in main()
766 junction->jacobian = J; in main()
830 PetscCall(DMNetworkGetComponent(networkdm, v, 0, &vkey, (void **)&junction, NULL)); in main()
831 PetscCall(JunctionDestroyJacobian(networkdm, v, junction)); in main()