| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | reaction_diffusion.c | 101 MatStencil stencil[6], rowstencil; in RHSJacobian() local 133 stencil[0].k = 0; in RHSJacobian() 134 stencil[1].k = 0; in RHSJacobian() 135 stencil[2].k = 0; in RHSJacobian() 136 stencil[3].k = 0; in RHSJacobian() 137 stencil[4].k = 0; in RHSJacobian() 138 stencil[5].k = 0; in RHSJacobian() 144 stencil[0].j = j - 1; in RHSJacobian() 145 stencil[1].j = j + 1; in RHSJacobian() 146 stencil[2].j = j; in RHSJacobian() [all …]
|
| /petsc/src/ts/tests/ |
| H A D | ex24.c | 25 MatStencil stencil[6], rowstencil; in RHSJacobian() local 57 stencil[0].k = 0; in RHSJacobian() 58 stencil[1].k = 0; in RHSJacobian() 59 stencil[2].k = 0; in RHSJacobian() 60 stencil[3].k = 0; in RHSJacobian() 61 stencil[4].k = 0; in RHSJacobian() 62 stencil[5].k = 0; in RHSJacobian() 68 stencil[0].j = j - 1; in RHSJacobian() 69 stencil[1].j = j + 1; in RHSJacobian() 70 stencil[2].j = j; in RHSJacobian() [all …]
|
| /petsc/src/ts/tutorials/autodiff/ |
| H A D | adr_ex5adj.cxx | 795 MatStencil stencil[6], rowstencil; in IJacobianByHand() local 827 stencil[0].k = 0; in IJacobianByHand() 828 stencil[1].k = 0; in IJacobianByHand() 829 stencil[2].k = 0; in IJacobianByHand() 830 stencil[3].k = 0; in IJacobianByHand() 831 stencil[4].k = 0; in IJacobianByHand() 832 stencil[5].k = 0; in IJacobianByHand() 838 stencil[0].j = j - 1; in IJacobianByHand() 839 stencil[1].j = j + 1; in IJacobianByHand() 840 stencil[2].j = j; in IJacobianByHand() [all …]
|
| /petsc/src/dm/impls/stag/tutorials/output/ |
| H A D | ex1_periodic_seq.out | 6 Elementwise ghost stencil: BOX, width 1 17 Elementwise ghost stencil: BOX, width 1 28 Elementwise ghost stencil: BOX, width 1 39 Elementwise ghost stencil: BOX, width 1 50 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex1_ghosted_vacuous.out | 6 Elementwise ghost stencil: BOX, width 1 23 Elementwise ghost stencil: BOX, width 1 40 Elementwise ghost stencil: BOX, width 1 57 Elementwise ghost stencil: BOX, width 1 74 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex1_periodic.out | 6 Elementwise ghost stencil: BOX, width 1 23 Elementwise ghost stencil: BOX, width 1 40 Elementwise ghost stencil: BOX, width 1 57 Elementwise ghost stencil: BOX, width 1 74 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex1_1.out | 6 Elementwise ghost stencil: STAR, width 1 35 Elementwise ghost stencil: STAR, width 1 64 Elementwise ghost stencil: STAR, width 1 116 Elementwise ghost stencil: STAR, width 1 145 Elementwise ghost stencil: STAR, width 1
|
| /petsc/src/dm/impls/da/hypre/ |
| H A D | mhyp.c | 28 PetscInt i, j, stencil, row; in MatSetValuesLocal_HYPREStruct_3d() local 36 stencil = icol[j] - irow[i]; in MatSetValuesLocal_HYPREStruct_3d() 37 if (!stencil) { in MatSetValuesLocal_HYPREStruct_3d() 39 } else if (stencil == -1) { in MatSetValuesLocal_HYPREStruct_3d() 41 } else if (stencil == 1) { in MatSetValuesLocal_HYPREStruct_3d() 43 } else if (stencil == -ex->gnx) { in MatSetValuesLocal_HYPREStruct_3d() 45 } else if (stencil == ex->gnx) { in MatSetValuesLocal_HYPREStruct_3d() 47 } else if (stencil == -ex->gnxgny) { in MatSetValuesLocal_HYPREStruct_3d() 49 } else if (stencil == ex->gnxgny) { in MatSetValuesLocal_HYPREStruct_3d() 51 …_FMT " local column %" PetscInt_FMT " have bad stencil %" PetscInt_FMT, irow[i], icol[j], stencil); in MatSetValuesLocal_HYPREStruct_3d() [all …]
|
| /petsc/src/dm/impls/stag/tests/output/ |
| H A D | ex16_1.out | 6 Elementwise ghost stencil: BOX, width 1 17 Elementwise ghost stencil: BOX, width 1 28 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex16_4.out | 6 Elementwise ghost stencil: BOX, width 1 20 Elementwise ghost stencil: BOX, width 1 34 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex16_2.out | 7 Elementwise ghost stencil: BOX, width 1 21 Elementwise ghost stencil: BOX, width 1 35 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex16_7.out | 6 Elementwise ghost stencil: BOX, width 1 23 Elementwise ghost stencil: BOX, width 1 40 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex42_dim-2.out | 7 Elementwise ghost stencil: BOX, width 1 42 Elementwise ghost stencil: BOX, width 1 82 Elementwise ghost stencil: BOX, width 1 111 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex42_dim-1.out | 6 Elementwise ghost stencil: BOX, width 1 29 Elementwise ghost stencil: BOX, width 1 51 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex42_dim-3.out | 7 Elementwise ghost stencil: BOX, width 1 91 Elementwise ghost stencil: BOX, width 1 248 Elementwise ghost stencil: BOX, width 1 370 Elementwise ghost stencil: BOX, width 1 418 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex14_1.out | 6 Elementwise ghost stencil: BOX, width 1 17 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex14_4.out | 6 Elementwise ghost stencil: BOX, width 1 20 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex16_5.out | 7 Elementwise ghost stencil: BOX, width 1 33 Elementwise ghost stencil: BOX, width 1 59 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex14_2.out | 7 Elementwise ghost stencil: BOX, width 1 33 Elementwise ghost stencil: BOX, width 1
|
| H A D | ex16_8.out | 7 Elementwise ghost stencil: BOX, width 1 41 Elementwise ghost stencil: BOX, width 1 75 Elementwise ghost stencil: BOX, width 1
|
| /petsc/src/dm/impls/da/ |
| H A D | daview.c | 14 DMDAStencilType stencil; in DMView_DA_Matlab() local 22 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, 0, 0, 0, &dof, &swidth, &bx, &by, &bz, &stencil)); in DMView_DA_Matlab() 34 mxSetFieldByNumber(mx, 0, 9, mxCreateDoubleScalar((double)stencil)); in DMView_DA_Matlab() 46 DMDAStencilType stencil; in DMView_DA_Binary() local 55 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &dof, &swidth, &bx, &by, &bz, &stencil)); in DMView_DA_Binary() 68 PetscCall(PetscViewerBinaryWrite(viewer, &stencil, 1, PETSC_ENUM)); in DMView_DA_Binary()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmda.py | 485 for stencil in STENCIL_TYPE: 492 'stencil_type': stencil, 504 del counter, dim, dof, boundary, stencil, width 517 for stencil in STENCIL_TYPE: 523 'stencil_type': stencil, 532 stencil = kargs['stencil_type'] 563 if stencil is None: 564 stencil = da.stencil[0] 570 self.assertEqual(newda.stencil, (stencil, width)) 579 del counter, dim, dof, boundary, stencil, width
|
| H A D | test_dmstag.py | 303 for stencil in STENCIL_TYPE: 304 if stencil == 'none' and boundary != 'none': 307 if stencil == 'none' and width > 0: 309 if stencil in ['star', 'box'] and width == 0: 315 'stencil_type': stencil, 484 del counter, dim, dofs, dof0, dof1, dof2, dof3, boundary, stencil, width
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmstag.pxi | 83 cdef inline PetscDMStagStencilType asStagStencil(object stencil) \ argument 85 if isinstance(stencil, str): 86 if stencil == "star": return DMSTAG_STENCIL_STAR 87 elif stencil == "box": return DMSTAG_STENCIL_BOX 88 elif stencil == "none": return DMSTAG_STENCIL_NONE 89 else: raise ValueError("unknown stencil type: %s" % stencil) 90 return stencil 128 else: raise ValueError("unknown stencil location type: %s" % stencil_location)
|
| H A D | petscdmda.pxi | 25 PetscDMDAStencilType, # stencil type 26 PetscInt, # stencil width 88 cdef inline PetscDMDAStencilType asStencil(object stencil) \ argument 90 if isinstance(stencil, str): 91 if stencil == "star": return DMDA_STENCIL_STAR 92 elif stencil == "box": return DMDA_STENCIL_BOX 93 else: raise ValueError("unknown stencil type: %s" % stencil) 94 return stencil
|