Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/
H A Dstag1d.c536 DMStagStencil *row_vertex, *row_element; in DMCreateMatrix_Stag_1D_AIJ_Assemble() local
538 PetscCall(PetscMalloc1(dof[0], &row_vertex)); in DMCreateMatrix_Stag_1D_AIJ_Assemble()
540 row_vertex[c].loc = DMSTAG_LEFT; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
541 row_vertex[c].c = c; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
552 for (PetscInt c = 0; c < dof[0]; ++c) row_vertex[c].i = e; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
553 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[0], row_vertex, dof[0], row_vertex, NULL, INSERT_VA… in DMCreateMatrix_Stag_1D_AIJ_Assemble()
560 PetscCall(PetscFree(row_vertex)); in DMCreateMatrix_Stag_1D_AIJ_Assemble()
H A Dstag2d.c1319 DMStagStencil *row_vertex, *row_face_down, *row_face_left, *row_element; in DMCreateMatrix_Stag_2D_AIJ_Assemble() local
1321 PetscCall(PetscMalloc1(dof[0], &row_vertex)); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1323 row_vertex[c].loc = DMSTAG_DOWN_LEFT; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1324 row_vertex[c].c = c; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1349 row_vertex[c].i = ex; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1350 row_vertex[c].j = ey; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1352 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[0], row_vertex, dof[0], row_vertex, NULL, INSERT_VA… in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1377 PetscCall(PetscFree(row_vertex)); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
H A Dstag3d.c3412 …DMStagStencil *row_vertex, *row_edge_down_left, *row_edge_back_down, *row_edge_back_left, *row_fac… in DMCreateMatrix_Stag_3D_AIJ_Assemble() local
3414 PetscCall(PetscMalloc1(dof[0], &row_vertex)); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3416 row_vertex[c].loc = DMSTAG_BACK_DOWN_LEFT; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3417 row_vertex[c].c = c; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3466 row_vertex[c].i = ex; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3467 row_vertex[c].j = ey; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3468 row_vertex[c].k = ez; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3470 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[0], row_vertex, dof[0], row_vertex, NULL, INSERT_VA… in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3537 PetscCall(PetscFree(row_vertex)); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
/petsc/src/dm/impls/stag/tests/
H A Dex40.c79 DMStagStencil row_vertex; in FormJacobian1DNoCoupling() local
82 row_vertex.i = e; in FormJacobian1DNoCoupling()
83 row_vertex.loc = DMSTAG_LEFT; in FormJacobian1DNoCoupling()
84 row_vertex.c = c; in FormJacobian1DNoCoupling()
85 PetscCall(DMStagVecGetValuesStencil(dm, x_local, 1, &row_vertex, &x_val)); in FormJacobian1DNoCoupling()
87 …PetscCall(DMStagMatSetValuesStencil(dm, Amat, 1, &row_vertex, 1, &row_vertex, &val, INSERT_VALUES)… in FormJacobian1DNoCoupling()
137 DMStagStencil row_vertex, row_element; in FormFunction1D() local
139 row_vertex.i = e; in FormFunction1D()
140 row_vertex.loc = DMSTAG_LEFT; in FormFunction1D()
154 row_vertex.c = c_row; in FormFunction1D()
[all …]