Lines Matching refs:maxCell
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()
103 if (!dm->maxCell) { in DMLocalizeCoordinate()
145 if (!dm->maxCell) { in DMLocalizeCoordinate_Internal()
149 if ((dm->L[d] > 0.0) && (PetscAbsScalar(anchor[d] - in[d]) > dm->maxCell[d])) { in DMLocalizeCoordinate_Internal()
164 if (!dm->maxCell) { in DMLocalizeCoordinateReal_Internal()
168 if ((dm->L[d] > 0.0) && (PetscAbsReal(anchor[d] - in[d]) > dm->maxCell[d])) { in DMLocalizeCoordinateReal_Internal()
203 if (!dm->maxCell) { in DMLocalizeAddCoordinate_Internal()
207 const PetscReal maxC = dm->maxCell[d]; in DMLocalizeAddCoordinate_Internal()