Lines Matching refs:coo_i
143 PetscInt *coo_i; in CreateHessian() local
175 PetscCall(PetscMalloc2(nnz_local, &coo_i, nnz_local, &coo_j)); in CreateHessian()
185 coo_i[k + 0] = i; in CreateHessian()
186 coo_i[k + 1] = i; in CreateHessian()
187 coo_i[k + 2] = i + 1; in CreateHessian()
188 coo_i[k + 3] = i + 1; in CreateHessian()
195 PetscCall(MatSetPreallocationCOO(H, nnz_local, coo_i, coo_j)); in CreateHessian()
196 PetscCall(PetscFree2(coo_i, coo_j)); in CreateHessian()
254 PetscInt n_coo, *coo_i, i_start, i_end; in CreateVectors() local
287 PetscCall(PetscMalloc1(n_coo, &coo_i)); in CreateVectors()
291 coo_i[k + 0] = i; in CreateVectors()
292 coo_i[k + 1] = i + 1; in CreateVectors()
295 PetscCall(PetscSFSetGraphLayout(user->gscatter, layout, n_coo, NULL, PETSC_USE_POINTER, coo_i)); in CreateVectors()
297 PetscCall(PetscFree(coo_i)); in CreateVectors()