Searched refs:v_neighbor (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex32.c | 128 PetscScalar *v, *v_neighbor, Hx, Hy, Hz, HxHydHz, HyHzdHx, HxHzdHy; in ComputeMatrix() local 144 v_neighbor = v + dof * dof; in ComputeMatrix() 151 v_neighbor[k3] = -HxHydHz; in ComputeMatrix() 154 v_neighbor[k3] = k2 / (dof * dof); in ComputeMatrix() 180 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 184 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 190 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 194 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 200 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 204 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix()
|
| /petsc/src/mat/tests/ |
| H A D | ex129.c | 186 PetscScalar *v, *v_neighbor, Hx, Hy, Hz, HxHydHz, HyHzdHx, HxHzdHy, r1, r2; in ComputeMatrix() local 208 v_neighbor = v + dof * dof; in ComputeMatrix() 215 v_neighbor[k3] = -HxHydHz; in ComputeMatrix() 221 v_neighbor[k3] = r2; in ComputeMatrix() 247 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 251 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 257 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 261 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 267 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix() 271 PetscCall(MatSetValuesBlockedStencil(B, 1, &row, 1, &col, v_neighbor, INSERT_VALUES)); in ComputeMatrix()
|