Lines Matching refs:maxValues
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()
267 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddWeightedValue()
268 PetscCall(PetscArraycpy(tmpw, hist->weights, hist->maxValues)); in PetscDrawHGAddWeightedValue()
273 hist->maxValues += CHUNKSIZE; in PetscDrawHGAddWeightedValue()