| /petsc/src/dm/impls/da/ |
| H A D | dainterp.c | 41 PetscInt i, i_start, m_f, Mx; in DMCreateInterpolation_DA_1D_Q1() local 63 PetscCall(DMDAGetCorners(daf, &i_start, NULL, NULL, &m_f, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q1() 90 for (i = i_start; i < i_start + m_f; i++) { in DMCreateInterpolation_DA_1D_Q1() 95 …%" PetscInt_FMT " i_c %" PetscInt_FMT " i_start_ghost_c %" PetscInt_FMT, i_start, i_c, i_start_gho… in DMCreateInterpolation_DA_1D_Q1() 126 for (i = i_start; i < i_start + m_f; i++) { in DMCreateInterpolation_DA_1D_Q1() 131 …%" PetscInt_FMT " i_c %" PetscInt_FMT " i_start_ghost_c %" PetscInt_FMT, i_start, i_c, i_start_gho… in DMCreateInterpolation_DA_1D_Q1() 172 PetscInt i, i_start, m_f, Mx; in DMCreateInterpolation_DA_1D_Q0() local 196 PetscCall(DMDAGetCorners(daf, &i_start, NULL, NULL, &m_f, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q0() 222 for (i = i_start; i < i_start + m_f; i++) { in DMCreateInterpolation_DA_1D_Q0() 258 PetscInt i, j, i_start, j_start, m_f, n_f, Mx, My, dof; in DMCreateInterpolation_DA_2D_Q1() local [all …]
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | rosenbrock4.h | 16 PetscInt i_start, i_end; member 141 PetscInt i_start, i_end, n_local_comp, nnz_local; in CreateHessian() local 154 PetscCall(PetscLayoutGetRange(layout, &i_start, &i_end)); in CreateHessian() 155 user->problem.i_start = i_start; in CreateHessian() 157 user->n_local = i_end - i_start; in CreateHessian() 158 user->problem.c_start = c_start = (i_start / bs) * (bs - 1) + (i_start % bs); in CreateHessian() 254 PetscInt n_coo, *coo_i, i_start, i_end; in CreateVectors() local 264 PetscCall(VecGetOwnershipRange(x, &i_start, &i_end)); in CreateVectors() 332 PetscScalar x_a = x[i - r.i_start]; in rosenbrock_for_loop() 333 PetscScalar x_b = ((i + 1) < r.i_end) ? x[i + 1 - r.i_start] : o[0]; in rosenbrock_for_loop() [all …]
|
| /petsc/src/ksp/pc/impls/tfs/ |
| H A D | gs.c | 494 PetscInt *ptr1, *ptr2, i_start, negl, nel, *elms; in get_ngh_buf() local 568 for (start = end, end += per_load, i_start = i; (offset = *ptr2) < end; i++, ptr2++) { in get_ngh_buf() 577 ptr2 = (elms + i_start); in get_ngh_buf() 663 PetscInt *iptr, t1, i_start, nel, *elms; in set_pairwise() local 716 for (i_start = i = 0; i < nprs; i++) { in set_pairwise() 727 i_start = PetscMax(i_start, ct); in set_pairwise() 741 j = gs->loc_node_pairs = i_start; in set_pairwise() 743 PetscCall(PCTFS_giop(&i_start, &offset, 1, &t1)); in set_pairwise() 744 gs->max_node_pairs = i_start; in set_pairwise() 746 i_start = j; in set_pairwise() [all …]
|
| /petsc/src/snes/impls/vi/ |
| H A D | vi.c | 418 PetscInt i_start[3], i_end[3]; in SNESSetUp_VI() local 442 PetscCall(VecGetOwnershipRange(snes->work[0], i_start, i_end)); in SNESSetUp_VI() 443 PetscCall(VecGetOwnershipRange(snes->xl, i_start + 1, i_end + 1)); in SNESSetUp_VI() 444 PetscCall(VecGetOwnershipRange(snes->xu, i_start + 2, i_end + 2)); in SNESSetUp_VI() 445 …if ((i_start[0] != i_start[1]) || (i_start[0] != i_start[2]) || (i_end[0] != i_end[1]) || (i_end[0… in SNESSetUp_VI()
|
| /petsc/src/ksp/pc/impls/bjacobi/ |
| H A D | bjacobi.c | 17 PetscInt bs, i_start = -1, i_end = -1; in PCSetUp_BJacobi() local 68 i_start = i; in PCSetUp_BJacobi() 75 for (i = i_start; i < jac->n + 1; i++) { in PCSetUp_BJacobi() 84 jac->n_local = i_end - i_start; in PCSetUp_BJacobi() 86 PetscCall(PetscArraycpy(jac->l_lens, jac->g_lens + i_start, jac->n_local)); in PCSetUp_BJacobi()
|