Home
last modified time | relevance | path

Searched refs:row_element (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
544 PetscCall(PetscMalloc1(dof[1], &row_element)); in DMCreateMatrix_Stag_1D_AIJ_Assemble()
546 row_element[c].loc = DMSTAG_ELEMENT; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
547 row_element[c].c = c; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
556 for (PetscInt c = 0; c < dof[1]; ++c) row_element[c].i = e; in DMCreateMatrix_Stag_1D_AIJ_Assemble()
557 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[1], row_element, dof[1], row_element, NULL, INSERT_… in DMCreateMatrix_Stag_1D_AIJ_Assemble()
561 PetscCall(PetscFree(row_element)); 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
1339 PetscCall(PetscMalloc1(dof[2], &row_element)); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1341 row_element[c].loc = DMSTAG_ELEMENT; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1342 row_element[c].c = c; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1370 row_element[c].i = ex; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1371 row_element[c].j = ey; in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1373 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[2], row_element, dof[2], row_element, NULL, INSERT_… in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1380 PetscCall(PetscFree(row_element)); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
H A Dstag3d.c3412 …_edge_back_down, *row_edge_back_left, *row_face_down, *row_face_left, *row_face_back, *row_element; in DMCreateMatrix_Stag_3D_AIJ_Assemble() local
3456 PetscCall(PetscMalloc1(dof[3], &row_element)); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3458 row_element[c].loc = DMSTAG_ELEMENT; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3459 row_element[c].c = c; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3528 row_element[c].i = ex; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3529 row_element[c].j = ey; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3530 row_element[c].k = ez; in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3532 …PetscCall(DMStagMatSetValuesStencil(dm, A, dof[3], row_element, dof[3], row_element, NULL, INSERT_… in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3544 PetscCall(PetscFree(row_element)); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
/petsc/src/dm/impls/stag/tests/
H A Dex40.c91 DMStagStencil row_element; in FormJacobian1DNoCoupling() local
94 row_element.i = e; in FormJacobian1DNoCoupling()
95 row_element.loc = DMSTAG_ELEMENT; in FormJacobian1DNoCoupling()
96 row_element.c = c; in FormJacobian1DNoCoupling()
97 PetscCall(DMStagVecGetValuesStencil(dm, x_local, 1, &row_element, &x_val)); in FormJacobian1DNoCoupling()
99 …PetscCall(DMStagMatSetValuesStencil(dm, Amat, 1, &row_element, 1, &row_element, &val, INSERT_VALUE… in FormJacobian1DNoCoupling()
137 DMStagStencil row_vertex, row_element; in FormFunction1D() local
142 row_element.i = e; in FormFunction1D()
143 row_element.loc = DMSTAG_ELEMENT; in FormFunction1D()
191 row_element.c = c_row; in FormFunction1D()
[all …]