Searched refs:coords_owned (Results 1 – 1 of 1) sorted by relevance
29 const PetscReal *coords, *coords_owned; // Only free owned on Destroy member54 PetscCall(PetscFree((*tree)->coords_owned)); in PetscKDTreeDestroy()259 tree->coords_owned = coords; // fallthrough in PetscKDTreeCreate()264 PetscCall(PetscMalloc1(num_coords * dim, &tree->coords_owned)); in PetscKDTreeCreate()265 PetscCall(PetscArraycpy((PetscReal *)tree->coords_owned, coords, num_coords * dim)); in PetscKDTreeCreate()266 tree->coords = tree->coords_owned; in PetscKDTreeCreate()302 PetscCall(PetscFree(tree->coords_owned)); in PetscKDTreeCreate()303 PetscCall(PetscSegBufferExtractAlloc(kd_build->bucket_coords, &tree->coords_owned)); in PetscKDTreeCreate()304 tree->coords = tree->coords_owned; in PetscKDTreeCreate()