| /petsc/src/dm/interface/ |
| H A D | dmperiodicity.c | 22 PetscErrorCode DMGetPeriodicity(DM dm, const PetscReal *maxCell[], const PetscReal *Lstart[], const… in DMGetPeriodicity() argument 26 if (maxCell) *maxCell = dm->maxCell; in DMGetPeriodicity() 47 PetscErrorCode DMSetPeriodicity(DM dm, const PetscReal maxCell[], const PetscReal Lstart[], const P… in DMSetPeriodicity() argument 53 if (maxCell) PetscAssertPointer(maxCell, 2); in DMSetPeriodicity() 57 if (maxCell) { in DMSetPeriodicity() 58 if (!dm->maxCell) PetscCall(PetscMalloc1(dim, &dm->maxCell)); in DMSetPeriodicity() 59 for (d = 0; d < dim; ++d) dm->maxCell[d] = maxCell[d]; in DMSetPeriodicity() 61 PetscCall(PetscFree(dm->maxCell)); in DMSetPeriodicity() 62 dm->maxCell = NULL; in DMSetPeriodicity() 78 …PetscCheck((dm->maxCell && dm->L) || (!dm->maxCell && !dm->L), PetscObjectComm((PetscObject)dm), P… in DMSetPeriodicity() [all …]
|
| H A D | dm.c | 198 const PetscReal *maxCell, *Lstart, *L; in DMClone() local 200 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMClone() 201 PetscCall(DMSetPeriodicity(*newdm, maxCell, Lstart, L)); in DMClone() 757 PetscCall(PetscFree((*dm)->maxCell)); in DMDestroy() 4152 const PetscReal *maxCell, *Lstart, *L; in DMConvert() local 4154 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMConvert() 4155 PetscCall(DMSetPeriodicity(*M, maxCell, Lstart, L)); in DMConvert()
|
| /petsc/src/dm/impls/forest/ |
| H A D | forest.c | 164 const PetscReal *maxCell, *L, *Lstart; in DMForestTemplate() local 166 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMForestTemplate() 167 PetscCall(DMSetPeriodicity(*tedm, maxCell, Lstart, L)); in DMForestTemplate() 303 const PetscReal *maxCell, *Lstart, *L; in DMForestSetBaseDM() local 310 PetscCall(DMGetPeriodicity(base, &maxCell, &Lstart, &L)); in DMForestSetBaseDM() 311 PetscCall(DMSetPeriodicity(dm, maxCell, Lstart, L)); in DMForestSetBaseDM()
|
| /petsc/src/dm/impls/da/ |
| H A D | gr1.c | 91 PetscReal maxCell[3] = {hx, hy, hz_}; in DMDASetUniformCoordinates() local 95 PetscCall(DMSetPeriodicity(da, maxCell, Lstart, L)); in DMDASetUniformCoordinates()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DM.pyx | 1406 maxCell 1426 cdef const PetscReal *maxCell = NULL 1429 CHKERR(DMGetPeriodicity(self.dm, &maxCell, &Lstart, &L)) 1430 CHKERR(PetscMemcpy(MAXCELL, maxCell, <size_t>dim*sizeof(PetscReal))) 1435 …def setPeriodicity(self, maxCell: Sequence[float], Lstart: Sequence[float], L: Sequence[float]) ->… 1442 maxCell 1455 cdef ndarray unuseda = oarray_r(maxCell, NULL, &MAXCELL)
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 78 const PetscReal *maxCell, *Lstart, *L; in DMPlexCopy_Internal() local 91 PetscCall(DMGetPeriodicity(dmin, &maxCell, &Lstart, &L)); in DMPlexCopy_Internal() 92 PetscCall(DMSetPeriodicity(dmout, maxCell, Lstart, L)); in DMPlexCopy_Internal() 127 const PetscReal *maxCell, *Lstart, *L; in DMPlexReplace_Internal() local 170 PetscCall(DMGetPeriodicity(dmNew, &maxCell, &Lstart, &L)); in DMPlexReplace_Internal() 171 PetscCall(DMSetPeriodicity(dm, maxCell, Lstart, L)); in DMPlexReplace_Internal() 950 PetscReal L, maxCell; in DMPlexCreateLineMesh_Internal() local 996 maxCell = (PetscReal)1.1 * (L / (PetscReal)PetscMax(1, segments)); in DMPlexCreateLineMesh_Internal() 997 PetscCall(DMSetPeriodicity(dm, &maxCell, &lower, &L)); in DMPlexCreateLineMesh_Internal() 1440 PetscReal maxCell[2] = {-1., -1.}; in DMPlexCreateSquareMesh_Simplex_CrissCross() local [all …]
|
| H A D | plexdistribute.c | 1191 const PetscReal *maxCell, *Lstart, *L; in DMPlexDistributeCoordinates() local 1217 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMPlexDistributeCoordinates() 1218 PetscCall(DMSetPeriodicity(dmParallel, maxCell, Lstart, L)); in DMPlexDistributeCoordinates()
|
| H A D | plexsubmesh.c | 921 const PetscReal *maxCell, *Lstart, *L; in DMPlexConstructGhostCells_Internal() local 1028 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMPlexConstructGhostCells_Internal() 1029 PetscCall(DMSetPeriodicity(gdm, maxCell, Lstart, L)); in DMPlexConstructGhostCells_Internal()
|
| H A D | plex.c | 1703 const PetscReal *maxCell; in DMPlexView_Ascii() local 1707 PetscCall(DMGetPeriodicity(dm, &maxCell, NULL, &L)); in DMPlexView_Ascii()
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 2168 const PetscReal *maxCell, *Lstart, *L; in DMPlexTransformSetCoordinates() local 2180 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMPlexTransformSetCoordinates() 2185 if (!maxCell) localizeCells = PETSC_TRUE; in DMPlexTransformSetCoordinates() 2189 if (maxCell) { in DMPlexTransformSetCoordinates() 2192 for (d = 0; d < dEo; ++d) maxCellNew[d] = maxCell[d] / 2.0; in DMPlexTransformSetCoordinates() 2308 if (localizeVertices && maxCell) { in DMPlexTransformSetCoordinates()
|
| /petsc/include/petsc/private/ |
| H A D | dmimpl.h | 304 …PetscReal *Lstart, *L, *maxCell; /* Size of periodic box and max cell size for determining periodi… member
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarm.c | 2823 const PetscReal *maxCell, *Lstart, *L; in DMSwarmReplace() local 2840 PetscCall(DMGetPeriodicity(dmNew, &maxCell, &Lstart, &L)); in DMSwarmReplace() 2841 PetscCall(DMSetPeriodicity(dm, maxCell, Lstart, L)); in DMSwarmReplace()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 302 ….0, 1.0, 0.0, 1.0}, Lstart[3] = {0., 0., 0.}, L[3] = {-1.0, -1.0, -1.0}, maxCell[3] = {-1.0, -1.0,… in DMFTopologyCreate_pforest() local 320 maxCell[i] = 1.1 * (L[i] / N[i]); in DMFTopologyCreate_pforest() 324 if (periodic) PetscCall(DMSetPeriodicity(dm, maxCell, Lstart, L)); in DMFTopologyCreate_pforest() 4239 const PetscReal *maxCell, *Lstart, *L; in DMConvert_pforest_plex() local 4241 PetscCall(DMGetPeriodicity(dm, &maxCell, &Lstart, &L)); in DMConvert_pforest_plex() 4242 PetscCall(DMSetPeriodicity(newPlex, maxCell, Lstart, L)); in DMConvert_pforest_plex()
|