| /petsc/src/mat/tests/ |
| H A D | ex5k.kokkos.cxx | 52 char mattype[64]; in main() local 72 PetscCall(PetscOptionsGetString(NULL, NULL, "-mat_type", mattype, sizeof(mattype), &flg)); in main() 73 if (!flg) PetscCall(PetscStrncpy(mattype, MATAIJ, sizeof(mattype))); in main() 89 PetscCall(MatConvert(A, mattype, MAT_INPLACE_MATRIX, &A)); in main()
|
| H A D | ex16.c | 36 char mattype[256]; in main() local 41 PetscCall(PetscStrncpy(mattype, MATMPIDENSE, sizeof(mattype))); in main() 42 PetscCall(PetscOptionsGetString(NULL, NULL, "-mat_type", mattype, sizeof(mattype), NULL)); in main() 47 PetscCall(MatConvert(A, mattype, MAT_INPLACE_MATRIX, &A)); in main() 80 PetscCall(MatSetType(A, mattype)); in main() 107 PetscCall(MatSetType(A, mattype)); in main()
|
| H A D | ex217.c | 10 MatType mattype; in main() local 18 PetscCall(MatGetType(A, &mattype)); in main()
|
| H A D | ex62.c | 37 MatType mattype; in main() local 79 PetscCall(MatGetType(B, &mattype)); in main() 164 PetscCall(MatConvert(P, mattype, MAT_INPLACE_MATRIX, &P)); in main() 165 PetscCall(MatConvert(R, mattype, MAT_INPLACE_MATRIX, &R)); in main()
|
| H A D | ex94.c | 40 MatType mattype; in main() local 78 PetscCall(MatGetType(B, &mattype)); in main() 189 PetscCall(MatSetType(P, mattype)); in main() 276 PetscCall(MatSetType(P, mattype)); in main()
|
| H A D | ex70.c | 208 char mattype[256]; in main() local 257 …PetscCall(PetscOptionsFList("-A_mat_type", "Matrix type", "MatSetType", MatList, deft, mattype, 25… in main() 263 PetscCall(MatConvert(A, mattype, MAT_INPLACE_MATRIX, &A)); in main()
|
| /petsc/src/dm/interface/ |
| H A D | dmgenerate.c | 193 PetscCall(PetscFree((*dmAdapt)->mattype)); in DMAdaptLabel() 194 PetscCall(PetscStrallocpy(dm->mattype, (char **)&(*dmAdapt)->mattype)); in DMAdaptLabel() 265 PetscCall(PetscFree((*dmAdapt)->mattype)); in DMAdaptMetric() 266 PetscCall(PetscStrallocpy(dm->mattype, (char **)&(*dmAdapt)->mattype)); in DMAdaptMetric()
|
| H A D | dm.c | 144 PetscCall(PetscFree((*newdm)->mattype)); in DMClone() 145 PetscCall(PetscStrallocpy(dm->mattype, (char **)&(*newdm)->mattype)); in DMClone() 394 tmp = (char *)dm->mattype; in DMSetMatType() 395 PetscCall(PetscStrallocpy(ctype, (char **)&dm->mattype)); in DMSetMatType() 419 *ctype = dm->mattype; in DMGetMatType() 736 PetscCall(PetscFree((*dm)->mattype)); in DMDestroy() 901 …rix type used for created matrices", "DMSetMatType", MatList, dm->mattype ? dm->mattype : typeName… in DMSetFromOptions() 2383 PetscCall(DMSetMatType(*dmf, dm->mattype)); in DMRefine() 2637 PetscCall(DMSetMatType(*dme, dm->mattype)); in DMExtrude() 3379 PetscCall(DMSetMatType(*dmc, dm->mattype)); in DMCoarsen() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex100f.F90 | 15 character*80 mattype 33 PetscCallA(MatPythonGetType(A, mattype, ierr)) 34 PetscCheckA(mattype == 'example100.py:Laplace1D', PETSC_COMM_WORLD, PETSC_ERR_PLIB, 'Error')
|
| /petsc/src/mat/impls/fft/ |
| H A D | fft.c | 43 PetscErrorCode MatCreateFFT(MPI_Comm comm, PetscInt ndim, const PetscInt dim[], MatType mattype, Ma… in MatCreateFFT() argument 73 PetscCall(MatSetType(FFT, mattype)); in MatCreateFFT()
|
| /petsc/lib/petsc/bin/ |
| H A D | PetscBinaryIO.py | 364 def readMat(self, fh, mattype='sparse'): argument 372 if mattype == 'sparse': 374 elif mattype == 'dense': 376 elif mattype == 'scipy.sparse': 416 def readBinaryFile(self, fid, mattype='sparse'): argument 450 objects.append(self.readMat(fid,mattype))
|
| /petsc/src/dm/impls/da/ |
| H A D | dainterp.c | 50 MatType mattype; in DMCreateInterpolation_DA_1D_Q1() local 83 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_1D_Q1() 84 PetscCall(MatSetType(mat, mattype)); in DMCreateInterpolation_DA_1D_Q1() 181 MatType mattype; in DMCreateInterpolation_DA_1D_Q0() local 216 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_1D_Q0() 217 PetscCall(MatSetType(mat, mattype)); in DMCreateInterpolation_DA_1D_Q0() 268 MatType mattype; in DMCreateInterpolation_DA_2D_Q1() local 357 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_2D_Q1() 358 PetscCall(MatSetType(mat, mattype)); in DMCreateInterpolation_DA_2D_Q1() 496 MatType mattype; in DMCreateInterpolation_DA_2D_Q0() local [all …]
|
| /petsc/src/mat/utils/ |
| H A D | axpy.c | 437 PetscErrorCode MatComputeOperator(Mat inmat, MatType mattype, Mat *mat) in MatComputeOperator() argument 442 PetscCall(MatConvert_Shell(inmat, mattype ? mattype : MATDENSE, MAT_INITIAL_MATRIX, mat)); in MatComputeOperator() 468 PetscErrorCode MatComputeOperatorTranspose(Mat inmat, MatType mattype, Mat *mat) in MatComputeOperatorTranspose() argument 476 PetscCall(MatConvert_Shell(A, mattype ? mattype : MATDENSE, MAT_INITIAL_MATRIX, mat)); in MatComputeOperatorTranspose()
|
| /petsc/src/dm/impls/stag/ |
| H A D | stagintern.c | 56 PetscCall(DMSetMatType(*newdm, dm->mattype)); in DMStagDuplicateWithoutSetup()
|
| H A D | stag.c | 435 MatType mattype; in DMCreateInterpolation_Stag() local 447 PetscCall(ConvertToAIJ(dmc->mattype, &mattype)); in DMCreateInterpolation_Stag() 448 PetscCall(MatSetType(*A, mattype)); in DMCreateInterpolation_Stag() 467 MatType mattype; in DMCreateRestriction_Stag() local 479 PetscCall(ConvertToAIJ(dmc->mattype, &mattype)); in DMCreateRestriction_Stag() 480 PetscCall(MatSetType(*A, mattype)); in DMCreateRestriction_Stag()
|
| /petsc/src/dm/impls/composite/ |
| H A D | packm.c | 57 PetscCall(MatSetType(*J, dm->mattype)); in DMCreateMatrix_Composite_AIJ() 191 PetscCall(PetscStrcmp(dm->mattype, MATNEST, &usenest)); in DMCreateMatrix_Composite()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | eige.c | 56 PetscErrorCode KSPComputeOperator(KSP ksp, MatType mattype, Mat *mat) in KSPComputeOperator() argument 73 PetscCall(MatComputeOperator(Aksp, mattype, mat)); in KSPComputeOperator()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexextrude.c | 136 PetscCall(DMSetMatType(*edm, dm->mattype)); in DMExtrude_Plex()
|
| H A D | plexrefine.c | 373 PetscCall(DMSetMatType(*rdm, dm->mattype)); in DMRefine_Plex() 432 PetscCall(DMSetMatType(rdm[r], dm->mattype)); in DMRefineHierarchy_Plex()
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmbmat.cxx | 24 mtype = dm->mattype; in DMCreateMatrix_Moab()
|
| H A D | dmmbmg.cxx | 487 PetscCall(DMSetMatType(dm2, dm->mattype)); in DMMoab_UMR_Private()
|
| /petsc/src/dm/impls/sliced/ |
| H A D | sliced.c | 28 PetscCall(MatSetType(*J, dm->mattype)); in DMCreateMatrix_Sliced()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex48.c | 273 MatType mattype; member 425 PetscCall(PetscFree((*thi)->mattype)); in THIDestroy() 536 PetscCall(PetscStrallocpy(mtype, (char **)&thi->mattype)); in THICreate() 643 PetscCall(DMSetMatType(dmf, thi->mattype)); in DMRefineHook_THI() 1343 PetscCall(MatSetType(A, da->mattype)); 1494 if (rlevel - clevel > 0) PetscCall(DMSetMatType(da, thi->mattype));
|
| /petsc/src/mat/impls/aij/mpi/pastix/ |
| H A D | pastix.c | 422 static PetscErrorCode MatGetFactor_pastix(Mat A, MatFactorType ftype, Mat *F, const char *mattype) in MatGetFactor_pastix() argument
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 20 PetscCall(MatSetType(*J, dm->mattype)); in DMCreateMatrix_Redundant()
|