Lines Matching refs:copies
326 PetscSpace *copies; in PetscFECreateVector() local
330 PetscCall(PetscMalloc1(num_copies, &copies)); in PetscFECreateVector()
333 copies[i] = scalar_sp; in PetscFECreateVector()
335 PetscCall(PetscSpaceCreateSum(num_copies, copies, PETSC_TRUE, &sp)); in PetscFECreateVector()
340 for (PetscInt i = 0; i < num_copies; i++) PetscCall(PetscSpaceDestroy(&copies[i])); in PetscFECreateVector()
341 PetscCall(PetscFree(copies)); in PetscFECreateVector()
345 PetscDualSpace *copies; in PetscFECreateVector() local
349 PetscCall(PetscMalloc1(num_copies, &copies)); in PetscFECreateVector()
352 copies[i] = scalar_sp; in PetscFECreateVector()
354 PetscCall(PetscDualSpaceCreateSum(num_copies, copies, PETSC_TRUE, &sp)); in PetscFECreateVector()
359 for (PetscInt i = 0; i < num_copies; i++) PetscCall(PetscDualSpaceDestroy(&copies[i])); in PetscFECreateVector()
360 PetscCall(PetscFree(copies)); in PetscFECreateVector()