Home
last modified time | relevance | path

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

/petsc/src/ksp/pc/impls/gamg/
H A Dclassical.c449 Mat Pnew; in PCGAMGTruncateProlongator_Private() local
495 PetscCall(MatCreate(PetscObjectComm((PetscObject)*P), &Pnew)); in PCGAMGTruncateProlongator_Private()
496 PetscCall(MatSetType(Pnew, mtype)); in PCGAMGTruncateProlongator_Private()
497 PetscCall(MatSetSizes(Pnew, pn, pcn, PETSC_DETERMINE, PETSC_DETERMINE)); in PCGAMGTruncateProlongator_Private()
498 PetscCall(MatSeqAIJSetPreallocation(Pnew, 0, lsparse)); in PCGAMGTruncateProlongator_Private()
499 PetscCall(MatMPIAIJSetPreallocation(Pnew, 0, lsparse, 0, gsparse)); in PCGAMGTruncateProlongator_Private()
543 PetscCall(MatSetValues(Pnew, 1, &i, idx, pncol, pnval, INSERT_VALUES)); in PCGAMGTruncateProlongator_Private()
546 PetscCall(MatAssemblyBegin(Pnew, MAT_FINAL_ASSEMBLY)); in PCGAMGTruncateProlongator_Private()
547 PetscCall(MatAssemblyEnd(Pnew, MAT_FINAL_ASSEMBLY)); in PCGAMGTruncateProlongator_Private()
550 *P = Pnew; in PCGAMGTruncateProlongator_Private()
[all …]
H A Dgamg.c448 Mat Pnew; in PCGAMGCreateLevel_GAMG() local
453 PetscCall(MatCreateSubMatrix(Pold, findices, new_eq_indices, MAT_INITIAL_MATRIX, &Pnew)); in PCGAMGCreateLevel_GAMG()
455 PetscCall(MatSetOption(Pnew, MAT_FORM_EXPLICIT_TRANSPOSE, PETSC_TRUE)); in PCGAMGCreateLevel_GAMG()
460 *a_P_inout = Pnew; in PCGAMGCreateLevel_GAMG()