Searched refs:maxValues (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/sys/classes/draw/utils/ |
| H A D | hists.c | 22 int maxValues; member 81 h->maxValues = CHUNKSIZE; in PetscDrawHGCreate() 84 PetscCall(PetscMalloc2(h->maxValues, &h->values, h->maxValues, &h->weights)); in PetscDrawHGCreate() 195 if (hist->numValues >= hist->maxValues) { in PetscDrawHGAddValue() 198 PetscCall(PetscMalloc2(hist->maxValues + CHUNKSIZE, &tmp, hist->maxValues + CHUNKSIZE, &tmpw)); in PetscDrawHGAddValue() 199 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddValue() 200 PetscCall(PetscArraycpy(tmpw, hist->weights, hist->maxValues)); in PetscDrawHGAddValue() 205 hist->maxValues += CHUNKSIZE; in PetscDrawHGAddValue() 263 if (hist->numValues >= hist->maxValues) { in PetscDrawHGAddWeightedValue() 266 PetscCall(PetscMalloc2(hist->maxValues + CHUNKSIZE, &tmp, hist->maxValues + CHUNKSIZE, &tmpw)); in PetscDrawHGAddWeightedValue() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex11.c | 119 PetscInt numValues, maxValues = 0, v; in TestEmptyStrata() local 136 …PetscCallMPI(MPIU_Allreduce(&numValues, &maxValues, 1, MPIU_INT, MPI_MAX, PetscObjectComm((PetscOb… in TestEmptyStrata() 137 for (v = numValues; v < maxValues; ++v) PetscCall(DMLabelAddStratum(label, v)); in TestEmptyStrata()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 4631 PetscInt numValues, maxValues = 0, v; in DMPlexStratify() local 4634 …PetscCallMPI(MPIU_Allreduce(&numValues, &maxValues, 1, MPIU_INT, MPI_MAX, PetscObjectComm((PetscOb… in DMPlexStratify() 4635 for (v = numValues; v < maxValues; v++) PetscCall(DMLabelAddStratum(label, v)); in DMPlexStratify()
|