Lines Matching refs:xarr
34 const PetscScalar *xarr; in FormJacobian_Power_private() local
47 PetscCall(VecGetArrayRead(localX, &xarr)); in FormJacobian_Power_private()
80 Vm = xarr[offset + 1]; in FormJacobian_Power_private()
129 thetaf = xarr[offsetfrom]; in FormJacobian_Power_private()
130 Vmf = xarr[offsetfrom + 1]; in FormJacobian_Power_private()
131 thetat = xarr[offsetto]; in FormJacobian_Power_private()
132 Vmt = xarr[offsetto + 1]; in FormJacobian_Power_private()
210 PetscCall(VecRestoreArrayRead(localX, &xarr)); in FormJacobian_Power_private()
244 const PetscScalar *xarr; in FormFunction_Power() local
256 PetscCall(VecGetArrayRead(localX, &xarr)); in FormFunction_Power()
273 farr[offset] = xarr[offset] - bus->va * PETSC_PI / 180.0; in FormFunction_Power()
274 farr[offset + 1] = xarr[offset + 1] - bus->vm; in FormFunction_Power()
279 Vm = xarr[offset + 1]; in FormFunction_Power()
313 thetaf = xarr[offsetfrom]; in FormFunction_Power()
314 Vmf = xarr[offsetfrom + 1]; in FormFunction_Power()
315 thetat = xarr[offsetto]; in FormFunction_Power()
316 Vmt = xarr[offsetto + 1]; in FormFunction_Power()
343 if (bus && bus->ide == PV_BUS) farr[offset + 1] = xarr[offset + 1] - bus->vm; in FormFunction_Power()
345 PetscCall(VecRestoreArrayRead(localX, &xarr)); in FormFunction_Power()
356 PetscScalar *xarr; in SetInitialGuess_Power() local
366 PetscCall(VecGetArray(localX, &xarr)); in SetInitialGuess_Power()
378 xarr[offset] = bus->va * PETSC_PI / 180.0; in SetInitialGuess_Power()
379 xarr[offset + 1] = bus->vm; in SetInitialGuess_Power()
383 xarr[offset + 1] = gen->vs; in SetInitialGuess_Power()
388 PetscCall(VecRestoreArray(localX, &xarr)); in SetInitialGuess_Power()