| /petsc/src/dm/impls/da/ |
| H A D | daview.c | 15 DMBoundaryType bx, by, bz; 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() 33 mxSetFieldByNumber(mx, 0, 8, mxCreateDoubleScalar((double)bz)); in DMView_DA_Matlab() 47 DMBoundaryType bx, by, bz; 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() 67 PetscCall(PetscViewerBinaryWrite(viewer, &bz, 1, PETSC_ENUM)); in DMView_DA_Binary() 108 …*s, PeOp DMBoundaryType *bx, PeOp DMBoundaryType *by, PeOp DMBoundaryType *bz, PeOp DMDAStencilTyp… in DMDAGetInfo() argument 134 if (bz) *bz = dd->bz; in DMDAGetInfo() 177 info->bz = dd->bz; in DMDAGetLocalInfo()
|
| H A D | dacreate.c | 37 …irection", "DMDASetBoundaryType", DMBoundaryTypes, (PetscEnum)dd->bz, (PetscEnum *)&dd->bz, NULL)); in DMSetFromOptions_DA() 100 if (dim > 2 && (dd->bz == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0)) { in DMSetFromOptions_DA() 125 DMBoundaryType bx, by, bz; in DMLoad_DA() local 139 PetscCall(PetscViewerBinaryRead(viewer, &bz, 1, NULL, PETSC_ENUM)); in DMLoad_DA() 144 PetscCall(DMDASetBoundaryType(da, bx, by, bz)); in DMLoad_DA() 188 PetscCall(DMDASetBoundaryType(*subdm, da->bx, da->by, da->bz)); in DMCreateSubDM_DA() 238 PetscCall(DMDASetBoundaryType(da, dd->bx, dd->by, dd->bz)); in DMCreateFieldDecomposition_DA() 259 PetscCall(DMDASetBoundaryType(*newdm, da->bx, da->by, da->bz)); in DMClone_DA() 393 dd->bz = DM_BOUNDARY_NONE; in DMCreate_DA()
|
| H A D | dacorn.c | 309 DMBoundaryType bx, by, bz; in DMDACreateCompatibleDMDA() local 326 bz = dd->bz; in DMDACreateCompatibleDMDA() 336 …PetscCall(DMDACreate3d(PetscObjectComm((PetscObject)da), bx, by, bz, stencil_type, M, N, P, m, n, … in DMDACreateCompatibleDMDA()
|
| H A D | fdda.c | 190 DMBoundaryType bx, by, bz; in DMCreateColoring_DA() local 219 PetscCall(DMDAGetInfo(da, &dim, NULL, NULL, NULL, &m, &n, &p, &nc, NULL, &bx, &by, &bz, NULL)); in DMCreateColoring_DA() 224 …BOUNDARY_PERIODIC) || (n == 1 && by == DM_BOUNDARY_PERIODIC) || (p == 1 && bz == DM_BOUNDARY_PERIO… in DMCreateColoring_DA() 328 DMBoundaryType bx, by, bz; in DMCreateColoring_DA_3d_MPIAIJ() local 338 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateColoring_DA_3d_MPIAIJ() 342 …PetscCheck(bz != DM_BOUNDARY_PERIODIC || (p % col) == 0, PetscObjectComm((PetscObject)da), PETSC_E… in DMCreateColoring_DA_3d_MPIAIJ() 930 DMBoundaryType bx, by, bz; in DMCreateMatrix_DA_3d_MPISELL() local 939 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPISELL() 958 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPISELL() 959 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPISELL() [all …]
|
| H A D | da.c | 101 …DAGetBoundaryType(DM da, PeOp DMBoundaryType *bx, PeOp DMBoundaryType *by, PeOp DMBoundaryType *bz) in DMDAGetBoundaryType() argument 109 if (bz) PetscAssertPointer(bz, 4); in DMDAGetBoundaryType() 112 if (bz) *bz = dd->bz; in DMDAGetBoundaryType() 134 PetscErrorCode DMDASetBoundaryType(DM da, DMBoundaryType bx, DMBoundaryType by, DMBoundaryType bz) in DMDASetBoundaryType() argument 142 PetscValidLogicalCollectiveEnum(da, bz, 4); in DMDASetBoundaryType() 146 dd->bz = bz; in DMDASetBoundaryType() 1040 if (dd->bz == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMRefine_DA() 1054 PetscCall(DMDASetBoundaryType(da2, dd->bx, dd->by, dd->bz)); in DMRefine_DA() 1063 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->bz == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1187 if (dd->bz == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMCoarsen_DA() [all …]
|
| H A D | gr1.c | 30 DMBoundaryType bx, by, bz; in DMDASetUniformCoordinates() local 39 PetscCall(DMDAGetInfo(da, &dim, &M, &N, &P, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)); in DMDASetUniformCoordinates() 72 if (bz == DM_BOUNDARY_PERIODIC) hz_ = (zmax - zmin) / (P); in DMDASetUniformCoordinates() 90 if (bx == DM_BOUNDARY_PERIODIC || by == DM_BOUNDARY_PERIODIC || bz == DM_BOUNDARY_PERIODIC) { in DMDASetUniformCoordinates()
|
| H A D | da3.c | 201 DMBoundaryType bz = dd->bz; in DMSetUp_DA_3D() local 223 …DA_STENCIL_BOX || (bx != DM_BOUNDARY_MIRROR && by != DM_BOUNDARY_MIRROR && bz != DM_BOUNDARY_MIRRO… in DMSetUp_DA_3D() 365 …PetscCheck((z > s) || (bz != DM_BOUNDARY_MIRROR), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Loca… in DMSetUp_DA_3D() 372 …else PetscCheck(z >= s || (p <= 1 && bz != DM_BOUNDARY_PERIODIC), PETSC_COMM_SELF, PETSC_ERR_ARG_O… in DMSetUp_DA_3D() 434 if (bz) Zs = zs - s; in DMSetUp_DA_3D() 442 if (bz) Ze = ze + s; in DMSetUp_DA_3D() 447 if (bz == DM_BOUNDARY_PERIODIC || bz == DM_BOUNDARY_MIRROR) { in DMSetUp_DA_3D() 747 if (bz != DM_BOUNDARY_PERIODIC) { in DMSetUp_DA_3D() 857 } else if (bz == DM_BOUNDARY_MIRROR) { in DMSetUp_DA_3D() 1026 } else if (bz == DM_BOUNDARY_MIRROR) { in DMSetUp_DA_3D() [all …]
|
| H A D | dageometry.c | 49 DMBoundaryType bx, by, bz; in DMGetLocalBoundingBox_DA() local 54 PetscCall(DMDAGetInfo(da, &dim, &M, &N, &P, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)); in DMGetLocalBoundingBox_DA() 113 if (bz == DM_BOUNDARY_PERIODIC && ze == P) { in DMGetLocalBoundingBox_DA()
|
| H A D | dadd.c | 366 if (info.bz == DM_BOUNDARY_PERIODIC || (zs != 0)) { in DMDASubDomainDA_Private() 373 if (info.bz == DM_BOUNDARY_PERIODIC || (zs + zm != info.mz)) zsize += zol; in DMDASubDomainDA_Private() 389 if (info.bz != DM_BOUNDARY_PERIODIC) { in DMDASubDomainDA_Private()
|
| H A D | dagtol.c | 44 …PetscCheck(dd->bx == DM_BOUNDARY_GHOSTED || dd->bz == DM_BOUNDARY_NONE || dd->s <= 0 || dd->p != 1… in DMLocalToGlobalBegin_DA()
|
| H A D | dainterp.c | 616 DMBoundaryType bx, by, bz; in DMCreateInterpolation_DA_3D_Q0() local 620 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInterpolation_DA_3D_Q0() 746 DMBoundaryType bx, by, bz; in DMCreateInterpolation_DA_3D_Q1() local 750 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInterpolation_DA_3D_Q1() 776 } else if (bz == DM_BOUNDARY_PERIODIC) { in DMCreateInterpolation_DA_3D_Q1() 1187 DMBoundaryType bx, by, bz; in DMCreateInjection_DA_3D() local 1192 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInjection_DA_3D() 1209 if (bz == DM_BOUNDARY_PERIODIC) { in DMCreateInjection_DA_3D()
|
| /petsc/src/dm/tests/ |
| H A D | ex46.c | 13 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 56 if (flg) bz = DM_BOUNDARY_PERIODIC; in main() 59 if (flg) bz = DM_BOUNDARY_GHOSTED; in main() 82 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main() 99 …PetscCall(DMDACreate3d(comm2, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly, lz, &da2)); in main() 122 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, 0, lx, ly,… in main() 134 bz2 = bz == DM_BOUNDARY_NONE ? DM_BOUNDARY_GHOSTED : DM_BOUNDARY_NONE; in main() 147 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P * 2, m, n, p, w, s, lx,… in main() 166 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main() 179 …PetscCall(DMStagCreate3d(PETSC_COMM_WORLD, bx, by, bz, M, N, P, m, n, p, 1, 1, 1, 1, DMSTAG_STENCI… in main()
|
| H A D | ex21.c | 14 DMBoundaryType bx, by, bz; in test1_DAInjection3d() local 19 bz = DM_BOUNDARY_NONE; in test1_DAInjection3d() 29 bz = DM_BOUNDARY_PERIODIC; in test1_DAInjection3d() 32 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, DMDA_STENCIL_BOX, mx + 1, my + 1, mz + 1, PET… in test1_DAInjection3d() 68 …if (!bx && !by && !bz && norm > PETSC_SQRT_MACHINE_EPSILON) PetscCall(PetscPrintf(PETSC_COMM_WORLD… in test1_DAInjection3d()
|
| H A D | ex15.c | 14 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 28 if (dim > 2) bz = DM_BOUNDARY_PERIODIC; in main() 44 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, DMDA_STENCIL_BOX, M1, M1, M1, PETSC_DECIDE, P… in main() 45 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, DMDA_STENCIL_BOX, M2, M2, M2, PETSC_DECIDE, P… in main()
|
| H A D | ex38.c | 11 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 26 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main()
|
| H A D | ex33.c | 13 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 58 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main() 87 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main()
|
| H A D | ex6.c | 19 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 64 if (flg) bz = DM_BOUNDARY_PERIODIC; in main() 67 if (flg) bz = DM_BOUNDARY_GHOSTED; in main() 91 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main()
|
| H A D | ex23.c | 11 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 35 if (pt == 4) bz = DM_BOUNDARY_PERIODIC; in main() 46 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, dof, stencil_… in main()
|
| H A D | ex2k.kokkos.cxx | 86 …DMBoundaryType bx = DM_BOUNDARY_PERIODIC, by = DM_BOUNDARY_PERIODIC, bz = DM_B… in main() local 107 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, st, len, len, len, PETSC_DECIDE, PETSC_DECIDE… in main()
|
| /petsc/include/ |
| H A D | petscdmdatypes.h | 66 DMBoundaryType bx, by, bz; /* type of ghost nodes at boundary */ member
|
| /petsc/src/dm/tutorials/ |
| H A D | ex3.c | 95 DMBoundaryType bx = DM_BOUNDARY_NONE, by = DM_BOUNDARY_NONE, bz = DM_BOUNDARY_NONE; in main() local 115 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stype, M, N, P, PETSC_DECIDE, PETSC_DECIDE, P… in main()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex16.c | 373 PetscReal bx, by, bz, dbx, dby, dbz; in FormElements() local 387 bz = pts[kk]; in FormElements() 400 bz = 1. - bz; in FormElements() 403 vals[idx] = bx * by * bz; in FormElements() 404 grad[3 * idx + 0] = dbx * by * bz; in FormElements() 405 grad[3 * idx + 1] = dby * bx * bz; in FormElements()
|
| /petsc/include/petsc/private/ |
| H A D | dmdaimpl.h | 19 DMBoundaryType bx, by, bz; /* indicates type of ghost nodes at boundary */ member
|
| /petsc/src/mat/impls/nest/ |
| H A D | matnest.c | 63 Vec *bx = bA->right, *bz = bA->left; in MatMultAdd_Nest() local 67 for (i = 0; i < nr; i++) PetscCall(VecGetSubVector(z, bA->isglobal.row[i], &bz[i])); in MatMultAdd_Nest() 73 PetscCall(VecCopy(by, bz[i])); in MatMultAdd_Nest() 79 PetscCall(MatMultAdd(bA->m[i][j], bx[j], bz[i], bz[i])); in MatMultAdd_Nest() 82 for (i = 0; i < nr; i++) PetscCall(VecRestoreSubVector(z, bA->isglobal.row[i], &bz[i])); in MatMultAdd_Nest() 300 Vec *bx = bA->left, *bz = bA->right; in MatMultTransposeAddKernel_Nest() local 305 for (i = 0; i < nc; i++) PetscCall(VecGetSubVector(z, bA->isglobal.col[i], &bz[i])); in MatMultTransposeAddKernel_Nest() 310 PetscCall(VecCopy(by, bz[j])); in MatMultTransposeAddKernel_Nest() 315 …if (herm) PetscCall(MatMultHermitianTransposeAdd(bA->m[i][j], bx[i], bz[j], bz[j])); /* z[j] <- y[… in MatMultTransposeAddKernel_Nest() 316 …else PetscCall(MatMultTransposeAdd(bA->m[i][j], bx[i], bz[j], bz[j])); /* z[j] <- y[… in MatMultTransposeAddKernel_Nest() [all …]
|
| /petsc/src/ksp/pc/impls/telescope/ |
| H A D | telescope_dmda.c | 349 DMBoundaryType bx, by, bz; in PCTelescopeSetUp_dmda_repart() local 365 …PetscCall(DMDAGetInfo(dm, &dim, &nx, &ny, &nz, NULL, NULL, NULL, &ndof, &nsw, &bx, &by, &bz, &sten… in PCTelescopeSetUp_dmda_repart() 378 by = bz = DM_BOUNDARY_NONE; in PCTelescopeSetUp_dmda_repart() 385 bz = DM_BOUNDARY_NONE; in PCTelescopeSetUp_dmda_repart() 407 PetscCall(DMDASetBoundaryType(ctx->dmrepart, bx, by, bz)); in PCTelescopeSetUp_dmda_repart()
|