Searched refs:newpc (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_ksp.py | 91 newpc = PETSc.PC() 92 newpc.create(self.ksp.getComm()) 93 self.assertEqual(newpc.getRefCount(), 1) 94 self.ksp.setPC(newpc) 95 self.assertEqual(newpc.getRefCount(), 2) 101 self.assertEqual(pc, newpc) 103 newpc.destroy() 104 self.assertFalse(bool(newpc))
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddc.c | 2447 PC newpc; in PCBDDCCreateFETIDPOperators_BDDC() local 2475 PetscCall(PCCreate(comm, &newpc)); in PCBDDCCreateFETIDPOperators_BDDC() 2476 PetscCall(PCSetOperators(newpc, newmat, newmat)); in PCBDDCCreateFETIDPOperators_BDDC() 2477 PetscCall(PCSetOptionsPrefix(newpc, prefix)); in PCBDDCCreateFETIDPOperators_BDDC() 2478 PetscCall(PCAppendOptionsPrefix(newpc, "fetidp_")); in PCBDDCCreateFETIDPOperators_BDDC() 2479 PetscCall(PCSetErrorIfFailure(newpc, pc->erroriffailure)); in PCBDDCCreateFETIDPOperators_BDDC() 2481 PetscCall(PCSetType(newpc, PCSHELL)); in PCBDDCCreateFETIDPOperators_BDDC() 2482 PetscCall(PCShellSetName(newpc, "FETI-DP multipliers")); in PCBDDCCreateFETIDPOperators_BDDC() 2483 PetscCall(PCShellSetContext(newpc, fetidppc_ctx)); in PCBDDCCreateFETIDPOperators_BDDC() 2484 PetscCall(PCShellSetApply(newpc, FETIDPPCApply)); in PCBDDCCreateFETIDPOperators_BDDC() [all …]
|
| /petsc/src/ksp/pc/interface/ |
| H A D | precon.c | 465 PetscErrorCode PCCreate(MPI_Comm comm, PC *newpc) in PCCreate() argument 470 PetscAssertPointer(newpc, 2); in PCCreate() 486 *newpc = pc; in PCCreate()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | PC.pyx | 283 cdef PetscPC newpc = NULL 284 CHKERR(PCCreate(ccomm, &newpc)) 285 CHKERR(PetscCLEAR(self.obj)); self.pc = newpc 783 cdef PetscPC newpc = NULL 784 CHKERR(PCCreate(ccomm, &newpc)) 785 CHKERR(PetscCLEAR(self.obj)); self.pc = newpc
|