Home
last modified time | relevance | path

Searched refs:newprefix (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ksp/ksp/interface/
H A Ditcl.c51 char *newprefix; in KSPSetOptionsPrefix() local
54 PetscCall(PetscMalloc1(len + sizeof(suffix) + 1, &newprefix)); in KSPSetOptionsPrefix()
55 PetscCall(PetscStrncpy(newprefix, prefix, len + sizeof(suffix))); in KSPSetOptionsPrefix()
56 PetscCall(PetscStrlcat(newprefix, suffix, len + sizeof(suffix))); in KSPSetOptionsPrefix()
57 PetscCall(PCSetOptionsPrefix(ksp->pc, newprefix)); in KSPSetOptionsPrefix()
58 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ksp, newprefix)); in KSPSetOptionsPrefix()
59 PetscCall(PetscFree(newprefix)); in KSPSetOptionsPrefix()
/petsc/src/ksp/pc/impls/composite/
H A Dcomposite.c351 char newprefix[20]; in PCCompositeAddPC_Composite() local
374 PetscCall(PetscSNPrintf(newprefix, 20, "sub_%" PetscInt_FMT "_", cnt)); in PCCompositeAddPC_Composite()
375 PetscCall(PCAppendOptionsPrefix(subpc, newprefix)); in PCCompositeAddPC_Composite()
/petsc/src/snes/impls/composite/
H A Dsnescomposite.c489 char newprefix[20]; in SNESCompositeAddSNES_Composite() local
517 PetscCall(PetscSNPrintf(newprefix, sizeof(newprefix), "sub_%" PetscInt_FMT "_", cnt)); in SNESCompositeAddSNES_Composite()
518 PetscCall(SNESAppendOptionsPrefix(ilink->snes, newprefix)); in SNESCompositeAddSNES_Composite()