Searched refs:cols0 (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex21.c | 40 PetscInt rows[4], cols0[5], cols1[5], cols2[3], cols3[3]; in Create() local 48 cols0[0] = r + 0; in Create() 49 cols0[1] = r + 1; in Create() 50 cols0[2] = r + 3; in Create() 51 cols0[3] = (r + 4) % M; in Create() 52 cols0[4] = (r + M - 4) % M; in Create() 85 PetscCall(MatSetValues(A, 1, &rows[0], 5, cols0, vals0, INSERT_VALUES)); in Create()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 482 …PetscInt fieldA, q, f, g, d, nr, nc, rows0[LANDAU_MAX_Q_FACE] = {0}, cols0[LANDAU_MAX_Q_FACE] =… in LandauFormJacobian_Internal() local 506 cols0[0] = idx; in LandauFormJacobian_Internal() 513 cols0[q] = maps[grid].c_maps[idx][q].gid; in LandauFormJacobian_Internal() 528 for (d = 0; d < nc; d++) cols[d] = cols0[d] + moffset; in LandauFormJacobian_Internal()
|