| /petsc/src/dm/tutorials/ |
| H A D | ex19.c | 53 …PetscCall(DMDASetBoundaryType(da, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC… in main() 101 …PetscCall(DMDASetBoundaryType(da, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC… in main() 149 …PetscCall(DMDASetBoundaryType(da, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC… in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | fdda.c | 224 …heck(!((m == 1 && bx == DM_BOUNDARY_PERIODIC) || (n == 1 && by == DM_BOUNDARY_PERIODIC) || (p == 1… in DMCreateColoring_DA() 340 …PetscCheck(bx != DM_BOUNDARY_PERIODIC || (m % col) == 0, PetscObjectComm((PetscObject)da), PETSC_E… in DMCreateColoring_DA_3d_MPIAIJ() 341 …PetscCheck(by != DM_BOUNDARY_PERIODIC || (n % col) == 0, PetscObjectComm((PetscObject)da), PETSC_E… in DMCreateColoring_DA_3d_MPIAIJ() 342 …PetscCheck(bz != DM_BOUNDARY_PERIODIC || (p % col) == 0, PetscObjectComm((PetscObject)da), PETSC_E… in DMCreateColoring_DA_3d_MPIAIJ() 404 …PetscCheck(bx != DM_BOUNDARY_PERIODIC || !(m % col), PetscObjectComm((PetscObject)da), PETSC_ERR_S… in DMCreateColoring_DA_1d_MPIAIJ() 850 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISELL() 851 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPISELL() 856 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPISELL() 857 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPISELL() 888 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISELL() [all …]
|
| H A D | gr1.c | 48 if (bx == DM_BOUNDARY_PERIODIC) hx = (xmax - xmin) / M; in DMDASetUniformCoordinates() 54 if (bx == DM_BOUNDARY_PERIODIC) hx = (xmax - xmin) / (M); in DMDASetUniformCoordinates() 56 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); in DMDASetUniformCoordinates() 68 if (bx == DM_BOUNDARY_PERIODIC) hx = (xmax - xmin) / (M); in DMDASetUniformCoordinates() 70 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); 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 | dadd.c | 358 if (info.bx == DM_BOUNDARY_PERIODIC || (xs != 0)) { in DMDASubDomainDA_Private() 362 if (info.by == DM_BOUNDARY_PERIODIC || (ys != 0)) { in DMDASubDomainDA_Private() 366 if (info.bz == DM_BOUNDARY_PERIODIC || (zs != 0)) { in DMDASubDomainDA_Private() 371 if (info.bx == DM_BOUNDARY_PERIODIC || (xs + xm != info.mx)) xsize += xol; in DMDASubDomainDA_Private() 372 if (info.by == DM_BOUNDARY_PERIODIC || (ys + ym != info.my)) ysize += yol; in DMDASubDomainDA_Private() 373 if (info.bz == DM_BOUNDARY_PERIODIC || (zs + zm != info.mz)) zsize += zol; in DMDASubDomainDA_Private() 375 if (info.bx != DM_BOUNDARY_PERIODIC) { in DMDASubDomainDA_Private() 382 if (info.by != DM_BOUNDARY_PERIODIC) { in DMDASubDomainDA_Private() 389 if (info.bz != DM_BOUNDARY_PERIODIC) { in DMDASubDomainDA_Private()
|
| H A D | da.c | 1026 if (dd->bx == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMRefine_DA() 1031 if (dd->by == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMRefine_DA() 1040 if (dd->bz == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMRefine_DA() 1061 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->bx == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1062 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->by == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1063 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->bz == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1069 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->bx == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1070 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->by == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1076 …PetscCall(DMDARefineOwnershipRanges(da, (PetscBool)(dd->bx == DM_BOUNDARY_PERIODIC || dd->interpty… in DMRefine_DA() 1173 if (dd->bx == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0) { in DMCoarsen_DA() [all …]
|
| H A D | da2.c | 299 …PetscCheck((x >= s) || ((m <= 1) && (bx != DM_BOUNDARY_PERIODIC)), PETSC_COMM_SELF, PETSC_ERR_ARG_… in DMSetUp_DA_2D() 300 …PetscCheck((y >= s) || ((n <= 1) && (by != DM_BOUNDARY_PERIODIC)), PETSC_COMM_SELF, PETSC_ERR_ARG_… in DMSetUp_DA_2D() 331 if (bx == DM_BOUNDARY_PERIODIC || bx == DM_BOUNDARY_MIRROR) { in DMSetUp_DA_2D() 361 if (by == DM_BOUNDARY_PERIODIC || by == DM_BOUNDARY_MIRROR) { in DMSetUp_DA_2D() 467 if (bx == DM_BOUNDARY_PERIODIC && by == DM_BOUNDARY_PERIODIC) { in DMSetUp_DA_2D() 490 } else if (by == DM_BOUNDARY_PERIODIC) { /* Handle Top and Bottom Sides */ in DMSetUp_DA_2D() 497 } else if (bx == DM_BOUNDARY_PERIODIC) { /* Handle Left and Right Sides */ in DMSetUp_DA_2D() 615 …cil_type == DMDA_STENCIL_STAR) || (bx && bx != DM_BOUNDARY_PERIODIC) || (by && by != DM_BOUNDARY_P… in DMSetUp_DA_2D()
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex7.c | 22 …PetscCall(DMStagCreate3d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY… in main() 64 …if (boundaryTypex == DM_BOUNDARY_PERIODIC && boundaryTypey == DM_BOUNDARY_PERIODIC && boundaryType… in main() 81 bnd[0] = (PetscBool)((i == 0 || i == Nx - 1) && boundaryTypex != DM_BOUNDARY_PERIODIC); in main() 82 bnd[1] = (PetscBool)((j == 0 || j == Ny - 1) && boundaryTypey != DM_BOUNDARY_PERIODIC); in main() 83 bnd[2] = (PetscBool)((k == 0 || k == Nz - 1) && boundaryTypez != DM_BOUNDARY_PERIODIC); in main() 84 extra[0] = i == Nx - 1 && boundaryTypex != DM_BOUNDARY_PERIODIC ? 1 : 0; in main() 85 extra[1] = j == Ny - 1 && boundaryTypey != DM_BOUNDARY_PERIODIC ? 1 : 0; in main() 86 extra[2] = k == Nz - 1 && boundaryTypez != DM_BOUNDARY_PERIODIC ? 1 : 0; in main()
|
| H A D | ex10.c | 21 …PetscCall(DMStagCreate2d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, 4, 4, PETSC… in main() 59 if (boundaryTypex == DM_BOUNDARY_PERIODIC && boundaryTypey == DM_BOUNDARY_PERIODIC) { in main() 75 bnd[0] = (PetscBool)((i == 0 || i == Nx - 1) && boundaryTypex != DM_BOUNDARY_PERIODIC); in main() 76 bnd[1] = (PetscBool)((j == 0 || j == Ny - 1) && boundaryTypey != DM_BOUNDARY_PERIODIC); in main() 77 extra[0] = i == Nx - 1 && boundaryTypex != DM_BOUNDARY_PERIODIC ? 1 : 0; in main() 78 extra[1] = j == Ny - 1 && boundaryTypey != DM_BOUNDARY_PERIODIC ? 1 : 0; in main()
|
| H A D | ex9.c | 22 …PetscCall(DMStagCreate3d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY… in main() 63 …if (boundaryTypex == DM_BOUNDARY_PERIODIC && boundaryTypey == DM_BOUNDARY_PERIODIC && boundaryType… in main()
|
| H A D | ex12.c | 21 …PetscCall(DMStagCreate2d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, 4, 4, PETSC… in main() 59 if (boundaryTypex == DM_BOUNDARY_PERIODIC && boundaryTypey == DM_BOUNDARY_PERIODIC) { in main()
|
| /petsc/src/dm/tests/ |
| H A D | ex45.c | 25 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_G… in main()
|
| H A D | ex23.c | 29 if (pt == 1) bx = DM_BOUNDARY_PERIODIC; in main() 30 if (pt == 2) by = DM_BOUNDARY_PERIODIC; in main() 32 bx = DM_BOUNDARY_PERIODIC; in main() 33 by = DM_BOUNDARY_PERIODIC; in main() 35 if (pt == 4) bz = DM_BOUNDARY_PERIODIC; in main()
|
| H A D | ex33.c | 36 if (pt == 1) bx = DM_BOUNDARY_PERIODIC; in main() 37 if (pt == 2) by = DM_BOUNDARY_PERIODIC; in main() 39 bx = DM_BOUNDARY_PERIODIC; in main() 40 by = DM_BOUNDARY_PERIODIC; in main()
|
| H A D | ex15.c | 26 if (dim > 0) bx = DM_BOUNDARY_PERIODIC; in main() 27 if (dim > 1) by = DM_BOUNDARY_PERIODIC; in main() 28 if (dim > 2) bz = DM_BOUNDARY_PERIODIC; in main()
|
| H A D | ex21.c | 25 bx = DM_BOUNDARY_PERIODIC; in test1_DAInjection3d() 27 by = DM_BOUNDARY_PERIODIC; in test1_DAInjection3d() 29 bz = DM_BOUNDARY_PERIODIC; in test1_DAInjection3d()
|
| H A D | ex1f.F90 | 27 …PetscCallA(DMDACreate2d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DMDA_STENCIL…
|
| H A D | ex43.c | 60 DMBoundaryType bx = DM_BOUNDARY_PERIODIC, by = DM_BOUNDARY_PERIODIC; in main()
|
| H A D | ex52.c | 13 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, 7, 2, 1, NULL, &da)); in main()
|
| H A D | ex26.c | 19 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX,… in main()
|
| /petsc/src/dm/tutorials/output/ |
| H A D | ex19_1.out | 11 1D -- DM_BOUNDARY_PERIODIC 26 2D -- DM_BOUNDARY_PERIODIC 41 3D -- DM_BOUNDARY_PERIODIC
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex1.c | 122 if (boundary == DM_BOUNDARY_PERIODIC) { in main() 218 if (boundary != DM_BOUNDARY_PERIODIC && isLastRank && e == start + n - 1) { in main() 264 if (boundary == DM_BOUNDARY_PERIODIC && PetscRealPart(h) < 0.0) h += domainSize; in main() 280 if (boundary != DM_BOUNDARY_PERIODIC && isLastRank && e == start + n - 1) { in main() 310 if (boundary == DM_BOUNDARY_PERIODIC && PetscRealPart(h) < 0.0) h += domainSize; in main()
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex5.c | 107 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, DM_BOUNDARY_PERIODIC, DMDA_STENCIL_… in main()
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag1d.c | 175 case DM_BOUNDARY_PERIODIC: in DMSetUp_Stag_1d() 220 case DM_BOUNDARY_PERIODIC: in DMSetUp_Stag_1d() 250 case DM_BOUNDARY_PERIODIC: in DMSetUp_Stag_1d() 266 case DM_BOUNDARY_PERIODIC: in DMSetUp_Stag_1d() 299 case DM_BOUNDARY_PERIODIC: in DMSetUp_Stag_1d() 334 } else if (stag->boundaryType[0] == DM_BOUNDARY_PERIODIC) { in DMSetUp_Stag_1d() 430 …if (stag->boundaryType[0] == DM_BOUNDARY_PERIODIC && stag->nRanks[0] == 1) PetscCall(DMStagPopulat… in DMSetUp_Stag_1d() 479 if (stag->lastRank[0] && stag->boundaryType[0] != DM_BOUNDARY_PERIODIC) { in DMStagPopulateLocalToGlobalInjective_1d() 603 if (boundary_type_x == DM_BOUNDARY_PERIODIC || (e_offset < N + 1 && e_offset >= 0)) { in DMCreateMatrix_Stag_1D_AIJ_Assemble()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex71.c | 226 …r.per[0] ? DM_BOUNDARY_PERIODIC : DM_BOUNDARY_NONE, user.per[1] ? DM_BOUNDARY_PERIODIC : DM_BOUNDA… in main() 230 …eate2d(PETSC_COMM_WORLD, user.per[0] ? DM_BOUNDARY_PERIODIC : DM_BOUNDARY_NONE, user.per[1] ? DM_B… in main() 233 …PetscCall(DMDACreate1d(PETSC_COMM_WORLD, user.per[0] ? DM_BOUNDARY_PERIODIC : DM_BOUNDARY_NONE, no… in main()
|
| /petsc/src/ts/characteristic/impls/da/ |
| H A D | slda.c | 99 if (bx == DM_BOUNDARY_PERIODIC) { in DMDAMapCoordsToPeriodicDomain() 103 if (by == DM_BOUNDARY_PERIODIC) { in DMDAMapCoordsToPeriodicDomain()
|