| /petsc/src/ksp/ksp/utils/lmvm/tests/ |
| H A D | ex2.c | 9 Mat sym, diag; in main() local 26 PetscCall(MatCreateLMVMSymBroyden(comm, 1, 1, &sym)); in main() 29 PetscCall(MatLMVMSetHistorySize(sym, m)); in main() 31 PetscCall(MatSetOptionsPrefix(sym, "sym_")); in main() 32 PetscCall(MatSetFromOptions(sym)); in main() 34 PetscCall(PetscObjectTypeCompare((PetscObject)sym, MATLMVMSYMBROYDEN, &is_sym)); in main() 35 PetscCall(PetscObjectTypeCompare((PetscObject)sym, MATLMVMSYMBADBROYDEN, &is_symbad)); in main() 36 if (is_sym) PetscCall(MatLMVMSymBroydenSetPhi(sym, phi)); in main() 37 if (is_symbad) PetscCall(MatLMVMSymBadBroydenSetPsi(sym, phi)); in main() 38 PetscCall(MatLMVMSymBroydenSetScaleType(sym, MAT_LMVM_SYMBROYDEN_SCALE_NONE)); in main() [all …]
|
| /petsc/src/ksp/pc/impls/sor/ |
| H A D | sor.c | 9 MatSORType sym; /* forward, reverse, symmetric etc. */ member 30 PetscInt flag = jac->sym | SOR_ZERO_INITIAL_GUESS; in PCApply_SOR() 41 PetscInt flag = jac->sym | SOR_ZERO_INITIAL_GUESS; in PCApplyTranspose_SOR() 42 PetscBool set, sym; in PCApplyTranspose_SOR() local 45 PetscCall(MatIsSymmetricKnown(pc->pmat, &set, &sym)); in PCApplyTranspose_SOR() 46 …PetscCheck(set && sym && (jac->sym == SOR_SYMMETRIC_SWEEP || jac->sym == SOR_LOCAL_SYMMETRIC_SWEEP… in PCApplyTranspose_SOR() 55 MatSORType stype = jac->sym; in PCApplyRichardson_SOR() 98 MatSORType sym = jac->sym; in PCView_SOR() local 105 …if (sym & SOR_ZERO_INITIAL_GUESS) PetscCall(PetscViewerASCIIPrintf(viewer, " zero initial guess\n… in PCView_SOR() 106 if (sym == SOR_APPLY_UPPER) sortype = "apply_upper"; in PCView_SOR() [all …]
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 96 PetscSectionSym sym; in PetscSectionCopy_Internal() local 118 PetscCall(PetscSectionGetFieldSym(section, f, &sym)); in PetscSectionCopy_Internal() 119 PetscCall(PetscSectionSetFieldSym(newSection, f, sym)); in PetscSectionCopy_Internal() 125 PetscCall(PetscSectionGetSym(section, &sym)); in PetscSectionCopy_Internal() 126 PetscCall(PetscSectionSetSym(newSection, sym)); in PetscSectionCopy_Internal() 2043 PetscSectionSym sym; in PetscSectionCreateSubsection() local 2053 PetscCall(PetscSectionGetFieldSym(s, fields[f], &sym)); in PetscSectionCreateSubsection() 2054 PetscCall(PetscSectionSetFieldSym(*subs, f, sym)); in PetscSectionCreateSubsection() 2135 PetscSectionSym sym; in PetscSectionCreateComponentSubsection() local 2151 PetscCall(PetscSectionGetFieldSym(s, 0, &sym)); in PetscSectionCreateComponentSubsection() [all …]
|
| /petsc/src/dm/label/ftn-custom/ |
| H A D | zdmlabel.c | 11 PETSC_EXTERN void petscsectionsymlabelsetstratum_(PetscSectionSym *sym, PetscInt *stratum, PetscInt… in petscsectionsymlabelsetstratum_() argument 13 …*__ierr = PetscSectionSymLabelSetStratum(*sym, *stratum, *size, *minOrient, *maxOrient, *mode, (co… in petscsectionsymlabelsetstratum_()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex82.c | 37 PetscBool flg, sym = PETSC_FALSE; in main() local 43 PetscCall(PetscOptionsGetBool(NULL, NULL, "-symmetric", &sym, NULL)); in main() 57 PetscCall(MatSetOption(A, MAT_SYMMETRIC, sym)); in main() 78 PetscCall(MatSetOption(aux, MAT_SYMMETRIC, sym)); in main()
|
| /petsc/src/mat/tests/ |
| H A D | ex246.cxx | 50 PetscBool flg, sym = PETSC_FALSE; in main() local 59 PetscCall(PetscOptionsGetBool(NULL, NULL, "-symmetric", &sym, NULL)); in main() 73 PetscCall(MatSetOption(A, MAT_SYMMETRIC, sym)); in main() 79 PetscCall(MatSetOption(B, MAT_SYMMETRIC, sym)); in main()
|
| H A D | ex268.c | 29 PetscBool flg, sym = PETSC_FALSE; in main() local 39 PetscCall(PetscOptionsGetBool(NULL, NULL, "-symmetric", &sym, NULL)); in main() 54 PetscCall(MatSetOption(A, MAT_SYMMETRIC, sym)); in main()
|
| H A D | ex241.c | 45 PetscBool flg, sym = PETSC_FALSE, recompression = PETSC_FALSE; in main() local 56 PetscCall(PetscOptionsGetBool(NULL, NULL, "-symmetric", &sym, NULL)); in main() 72 PetscCall(MatSetOption(A, MAT_SYMMETRIC, sym)); in main() 114 PetscCall(MatSetOption(B, MAT_SYMMETRIC, (PetscBool)!sym)); in main()
|
| /petsc/src/dm/label/ |
| H A D | dmlabel.c | 2673 static PetscErrorCode PetscSectionSymLabelReset(PetscSectionSym sym) in PetscSectionSymLabelReset() argument 2676 PetscSectionSym_Label *sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelReset() 2703 static PetscErrorCode PetscSectionSymDestroy_Label(PetscSectionSym sym) in PetscSectionSymDestroy_Label() argument 2706 PetscCall(PetscSectionSymLabelReset(sym)); in PetscSectionSymDestroy_Label() 2707 PetscCall(PetscFree(sym->data)); in PetscSectionSymDestroy_Label() 2711 static PetscErrorCode PetscSectionSymView_Label(PetscSectionSym sym, PetscViewer viewer) in PetscSectionSymView_Label() argument 2713 PetscSectionSym_Label *sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymView_Label() 2803 PetscErrorCode PetscSectionSymLabelSetLabel(PetscSectionSym sym, DMLabel label) in PetscSectionSymLabelSetLabel() argument 2808 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymLabelSetLabel() 2809 sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelSetLabel() [all …]
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpiaijbaij.c | 18 …PetscBool3 sym = A->symmetric, hermitian = A->hermitian, structurally_symmetric = A->structurally_… in MatConvert_MPIAIJ_MPIBAIJ() local 35 A->symmetric = sym; in MatConvert_MPIAIJ_MPIBAIJ()
|
| /petsc/src/ksp/pc/impls/eisens/ |
| H A D | eisen.c | 61 PetscBool hasop, set, sym; in PCApplyTranspose_Eisenstat() local 64 PetscCall(MatIsSymmetricKnown(eis->A, &set, &sym)); in PCApplyTranspose_Eisenstat() 65 …PetscCheck(set && sym, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Can only apply transpose … in PCApplyTranspose_Eisenstat() 187 PetscBool set, sym; in PCSetUp_Eisenstat() local 194 PetscCall(MatIsSymmetricKnown(pc->mat, &set, &sym)); in PCSetUp_Eisenstat() 201 …if (set && sym) PetscCall(MatShellSetOperation(eis->shell, MATOP_MULT_TRANSPOSE, (PetscErrorCodeFn… in PCSetUp_Eisenstat()
|
| /petsc/src/mat/tests/output/ |
| H A D | ex192_mumps_3.out | 1 Solving with mumps: nrhs 2, sym 1, herm 1, size schur 5, size mat 12
|
| H A D | ex192_mkl_pardiso.out | 1 Solving with mkl_pardiso: nrhs 2, sym 0, herm 0, size schur 5, size mat 12
|
| H A D | ex192_mumps.out | 1 Solving with mumps: nrhs 2, sym 0, herm 0, size schur 5, size mat 12
|
| H A D | ex192_mkl_pardiso_1.out | 1 Solving with mkl_pardiso: nrhs 2, sym 1, herm 0, size schur 5, size mat 12
|
| H A D | ex192_mumps_2.out | 1 Solving with mumps: nrhs 2, sym 1, herm 0, size schur 5, size mat 12
|
| H A D | ex192_mkl_pardiso_3.out | 1 Solving with mkl_pardiso: nrhs 2, sym 1, herm 1, size schur 5, size mat 12
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex6.c | 197 PetscSectionSym sym; in SetSymmetries() local 200 PetscCall(PetscSectionSymCreateLabel(PetscObjectComm((PetscObject)s), depthLabel, &sym)); in SetSymmetries() 224 …PetscCall(PetscSectionSymLabelSetStratum(sym, d, numDof * numComp, minOrnt, maxOrnt, PETSC_OWN_POI… in SetSymmetries() 297 …PetscCall(PetscSectionSymLabelSetStratum(sym, d, numDof * numComp, minOrnt, maxOrnt, PETSC_OWN_POI… in SetSymmetries() 300 PetscCall(PetscSectionSetFieldSym(s, f, sym)); in SetSymmetries() 301 PetscCall(PetscSectionSymDestroy(&sym)); in SetSymmetries()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex27.c | 192 PetscScalar vx, vy, sxp, syp, sxm, sym, avx, vxp, vxm, avy, vyp, vym, f_advect; in FormIFunctionLocal() local 230 sym = syp; in FormIFunctionLocal() 233 sym = syp; in FormIFunctionLocal() 235 sym = (x[j + 1][i].sp[l] - x[j][i].sp[l]) * dhy; in FormIFunctionLocal() 257 f_advect += scale * (vyp * syp + vym * sym); in FormIFunctionLocal()
|
| /petsc/src/mat/impls/lrc/ |
| H A D | lrc.c | 259 PetscBool sym = (PetscBool)(U == V), dummy; in MatSetUp_LRC() local 264 if (A && sym) PetscCall(MatIsSymmetricKnown(A, &dummy, &sym)); in MatSetUp_LRC() 265 PetscCall(MatSetOption(N, MAT_SYMMETRIC, sym)); in MatSetUp_LRC()
|
| /petsc/src/mat/interface/ftn-custom/ |
| H A D | zmatrixf90.c | 313 PETSC_EXTERN void matgetrowij_(Mat *B, PetscInt *shift, PetscBool *sym, PetscBool *blockcompressed,… in matgetrowij_() argument 316 *ierr = MatGetRowIJ(*B, *shift, *sym, *blockcompressed, n, &IA, &JA, done); in matgetrowij_() 322 PETSC_EXTERN void matrestorerowij_(Mat *B, PetscInt *shift, PetscBool *sym, PetscBool *blockcompres… in matrestorerowij_() argument 333 *ierr = MatRestoreRowIJ(*B, *shift, *sym, *blockcompressed, n, &IA, &JA, done); in matrestorerowij_()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 48 PetscSectionSym sym; in DMPlexCreateSectionFields() local 52 … PetscCall(PetscSectionSymCreateLabel(PetscObjectComm((PetscObject)*section), depthLabel, &sym)); in DMPlexCreateSectionFields() 73 …PetscCall(PetscSectionSymLabelSetStratum(sym, depth - h, numDof[depth - h], -kConeSize, kConeSize,… in DMPlexCreateSectionFields() 75 PetscCall(PetscSectionSetFieldSym(*section, f, sym)); in DMPlexCreateSectionFields() 76 PetscCall(PetscSectionSymDestroy(&sym)); in DMPlexCreateSectionFields()
|
| /petsc/include/petsc/private/ |
| H A D | sectionimpl.h | 53 PetscSectionSym sym; /* Symmetries of the data */ member
|
| /petsc/src/mat/impls/aij/seq/mkl_pardiso/ |
| H A D | mkl_pardiso.c | 105 static PetscErrorCode MatMKLPardiso_Convert_seqsbaij(Mat A, PetscBool sym, MatReuse reuse, PetscBoo… in MatMKLPardiso_Convert_seqsbaij() argument 111 PetscCheck(sym, PetscObjectComm((PetscObject)A), PETSC_ERR_PLIB, "This should not happen"); in MatMKLPardiso_Convert_seqsbaij() 133 static PetscErrorCode MatMKLPardiso_Convert_seqbaij(Mat A, PetscBool sym, MatReuse reuse, PetscBool… in MatMKLPardiso_Convert_seqbaij() argument 139 if (!sym) { in MatMKLPardiso_Convert_seqbaij() 165 static PetscErrorCode MatMKLPardiso_Convert_seqaij(Mat A, PetscBool sym, MatReuse reuse, PetscBool … in MatMKLPardiso_Convert_seqaij() argument 172 if (!sym) { /* already in the correct format */ in MatMKLPardiso_Convert_seqaij()
|
| /petsc/src/mat/impls/aij/mpi/mumps/ |
| H A D | mumps.c | 124 MUMPS_INT sym, par, job; member 194 inner->sym = outer->sym; \ 577 PetscMUMPSInt sym; member 1516 PetscBool chol = mumps->sym ? PETSC_TRUE : PETSC_FALSE; in MatConvertToTriples_nest_xaij() 2566 if (!mumps->sym && mumps->id.ICNTL(19) && mumps->id.ICNTL(19) != 1) mumps->id.ICNTL(19) = 3; in MatFactorNumeric_MUMPS() 2656 mumps->id.sym = mumps->sym; in MatSetFromOptions_MUMPS() 3099 …Call(PetscViewerASCIIPrintf(viewer, " SYM (matrix type): %d\n", mumps->id.sym)); in MatView_MUMPS() 3270 if (mumps->sym == 1) PetscCall(MatSetOption(F->schur, MAT_SPD, PETSC_TRUE)); in MatFactorSetSchurIS_MUMPS() 3298 if (!mumps->sym) { /* MUMPS always return a full matrix */ in MatFactorCreateSchurComplement_MUMPS() 4114 mumps->sym = 0; in MatGetFactor_aij_mumps() [all …]
|