Home
last modified time | relevance | path

Searched refs:sub_mat_type (Results 1 – 4 of 4) sorted by relevance

/petsc/include/petsc/private/
H A Dpcasmimpl.h23 …MatType sub_mat_type; /* the type of Mat used for subdomain solves (can be MATSAME or NUL… member
H A Dpcpatchimpl.h90 MatType sub_mat_type; /* Matrix type for patch systems */ member
/petsc/src/ksp/pc/impls/asm/
H A Dasm.c287 if (scall == MAT_REUSE_MATRIX && osm->sub_mat_type) { in PCSetUp_ASM()
304 if (osm->sub_mat_type) { in PCSetUp_ASM()
305 …for (i = 0; i < osm->n_local_true; i++) PetscCall(MatConvert(osm->pmat[i], osm->sub_mat_type, MAT_… in PCSetUp_ASM()
679 PetscCall(PetscFree(osm->sub_mat_type)); in PCReset_ASM()
720 char sub_mat_type[256]; in PCSetFromOptions_ASM() local
746 …_mat_type", "Subsolve Matrix Type", "PCASMSetSubMatType", MatList, NULL, sub_mat_type, 256, &flg)); in PCSetFromOptions_ASM()
747 if (flg) PetscCall(PCASMSetSubMatType(pc, sub_mat_type)); in PCSetFromOptions_ASM()
906 static PetscErrorCode PCASMGetSubMatType_ASM(PC pc, MatType *sub_mat_type) in PCASMGetSubMatType_ASM() argument
912 PetscAssertPointer(sub_mat_type, 2); in PCASMGetSubMatType_ASM()
913 *sub_mat_type = osm->sub_mat_type; in PCASMGetSubMatType_ASM()
[all …]
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c404 PetscErrorCode PCPatchSetSubMatType(PC pc, MatType sub_mat_type) in PCPatchSetSubMatType() argument
409 if (patch->sub_mat_type) PetscCall(PetscFree(patch->sub_mat_type)); in PCPatchSetSubMatType()
410 PetscCall(PetscStrallocpy(sub_mat_type, (char **)&patch->sub_mat_type)); in PCPatchSetSubMatType()
415 PetscErrorCode PCPatchGetSubMatType(PC pc, MatType *sub_mat_type) in PCPatchGetSubMatType() argument
420 *sub_mat_type = patch->sub_mat_type; in PCPatchGetSubMatType()
1721 if (patch->sub_mat_type) PetscCall(MatSetType(*mat, patch->sub_mat_type)); in PCPatchCreateMatrix_Private()
1722 else if (!patch->sub_mat_type) PetscCall(MatSetType(*mat, MATDENSE)); in PCPatchCreateMatrix_Private()
2944 PetscCall(PetscFree(patch->sub_mat_type)); in PCReset_PATCH()
2993 char sub_mat_type[PETSC_MAX_PATH_LEN]; in PCSetFromOptions_PATCH() local
3039 …Matrix type for patch solves", "PCPatchSetSubMatType", MatList, NULL, sub_mat_type, PETSC_MAX_PATH… in PCSetFromOptions_PATCH()
[all …]