Home
last modified time | relevance | path

Searched refs:tmpw (Results 1 – 2 of 2) sorted by relevance

/petsc/src/sys/classes/draw/utils/
H A Dhists.c196 PetscReal *tmp, *tmpw; in PetscDrawHGAddValue() local
198 PetscCall(PetscMalloc2(hist->maxValues + CHUNKSIZE, &tmp, hist->maxValues + CHUNKSIZE, &tmpw)); in PetscDrawHGAddValue()
200 PetscCall(PetscArraycpy(tmpw, hist->weights, hist->maxValues)); in PetscDrawHGAddValue()
204 hist->weights = tmpw; in PetscDrawHGAddValue()
264 PetscReal *tmp, *tmpw; in PetscDrawHGAddWeightedValue() local
266 PetscCall(PetscMalloc2(hist->maxValues + CHUNKSIZE, &tmp, hist->maxValues + CHUNKSIZE, &tmpw)); in PetscDrawHGAddWeightedValue()
268 PetscCall(PetscArraycpy(tmpw, hist->weights, hist->maxValues)); in PetscDrawHGAddWeightedValue()
272 hist->weights = tmpw; in PetscDrawHGAddWeightedValue()
/petsc/src/dm/dt/interface/
H A Ddtprob.c686 PetscReal *tmpv, *tmpw; in PetscProbComputeKSStatistic_Internal()
689 PetscCall(PetscMalloc3(n, &perm, n, &tmpv, n, &tmpw)); in PetscProbComputeKSStatistic_Internal()
694 tmpw[i] = wgt[perm[i]]; in PetscProbComputeKSStatistic_Internal()
698 wgt[i] = tmpw[i]; in PetscProbComputeKSStatistic_Internal()
700 PetscCall(PetscFree3(perm, tmpv, tmpw)); in PetscProbComputeKSStatistic_Internal()