Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9bus.c120 PetscInt neqs_gen, neqs_net, neqs_pgrid; member
328 idx = user->stepnum * (user->neqs_pgrid + 1); in SaveSolution()
332 PetscCall(PetscArraycpy(mat + idx + 1, x, user->neqs_pgrid)); in SaveSolution()
649 PetscCall(PetscMalloc1(user->neqs_pgrid, &d_nnz)); in PreallocateJacobian()
650 for (i = 0; i < user->neqs_pgrid; i++) d_nnz[i] = 0; in PreallocateJacobian()
1080 user.neqs_pgrid = user.neqs_gen + user.neqs_net; in main()
1095 PetscCall(ISComplement(user.is_diff, 0, user.neqs_pgrid, &user.is_alg)); in main()
1154 PetscCall(MatSetSizes(J, PETSC_DECIDE, PETSC_DECIDE, user.neqs_pgrid, user.neqs_pgrid)); in main()
1161 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, user.neqs_pgrid + 1, 1002, NULL, &user.Sol)); in main()
1191 idx = user.stepnum * (user.neqs_pgrid + 1); in main()
[all …]
H A Dex9busopt.c96 PetscInt neqs_gen, neqs_net, neqs_pgrid; member
142 idx = user->stepnum * (user->neqs_pgrid + 1); in SaveSolution()
146 PetscCall(PetscArraycpy(mat + idx + 1, x, user->neqs_pgrid)); in SaveSolution()
534 PetscCall(PetscMalloc1(user->neqs_pgrid, &d_nnz)); in PreallocateJacobian()
535 for (i = 0; i < user->neqs_pgrid; i++) d_nnz[i] = 0; in PreallocateJacobian()
1050 user.neqs_pgrid = user.neqs_gen + user.neqs_net; in main()
1064 PetscCall(ISComplement(user.is_diff, 0, user.neqs_pgrid, &user.is_alg)); in main()
1124 PetscCall(MatSetSizes(user.J, PETSC_DECIDE, PETSC_DECIDE, user.neqs_pgrid, user.neqs_pgrid)); in main()
1129 PetscCall(MatSetSizes(user.Jacp, PETSC_DECIDE, PETSC_DECIDE, user.neqs_pgrid, 3)); in main()
1136 …PetscCall(MatCreateDense(PETSC_COMM_WORLD, PETSC_DECIDE, PETSC_DECIDE, user.neqs_pgrid, 1, NULL, &… in main()
H A Dex9busadj.c89 PetscInt neqs_gen, neqs_net, neqs_pgrid; member
388 PetscCall(PetscMalloc1(user->neqs_pgrid, &d_nnz)); in PreallocateJacobian()
389 for (i = 0; i < user->neqs_pgrid; i++) d_nnz[i] = 0; in PreallocateJacobian()
792 user.neqs_pgrid = user.neqs_gen + user.neqs_net; in main()
806 PetscCall(ISComplement(user.is_diff, 0, user.neqs_pgrid, &user.is_alg)); in main()
861 PetscCall(MatSetSizes(J, PETSC_DECIDE, PETSC_DECIDE, user.neqs_pgrid, user.neqs_pgrid)); in main()
H A Dex9busoptfd.c86 PetscInt neqs_gen, neqs_net, neqs_pgrid; member
389 PetscCall(PetscMalloc1(user->neqs_pgrid, &d_nnz)); in PreallocateJacobian()
390 for (i = 0; i < user->neqs_pgrid; i++) d_nnz[i] = 0; in PreallocateJacobian()
844 user.neqs_pgrid = user.neqs_gen + user.neqs_net; in main()
858 PetscCall(ISComplement(user.is_diff, 0, user.neqs_pgrid, &user.is_alg)); in main()
1017 PetscCall(MatSetSizes(J, PETSC_DECIDE, PETSC_DECIDE, ctx->neqs_pgrid, ctx->neqs_pgrid)); in FormFunction()