Home
last modified time | relevance | path

Searched refs:mattype (Results 1 – 25 of 37) sorted by relevance

12

/petsc/src/mat/tests/
H A Dex5k.kokkos.cxx52 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 Dex16.c36 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 Dex217.c10 MatType mattype; in main() local
18 PetscCall(MatGetType(A, &mattype)); in main()
H A Dex62.c37 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 Dex94.c40 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 Dex70.c208 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 Ddmgenerate.c193 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 Ddm.c144 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 Dex100f.F9015 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 Dfft.c43 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 DPetscBinaryIO.py364 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 Ddainterp.c50 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 Daxpy.c437 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 Dstagintern.c56 PetscCall(DMSetMatType(*newdm, dm->mattype)); in DMStagDuplicateWithoutSetup()
H A Dstag.c435 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 Dpackm.c57 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 Deige.c56 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 Dplexextrude.c136 PetscCall(DMSetMatType(*edm, dm->mattype)); in DMExtrude_Plex()
H A Dplexrefine.c373 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 Ddmmbmat.cxx24 mtype = dm->mattype; in DMCreateMatrix_Moab()
H A Ddmmbmg.cxx487 PetscCall(DMSetMatType(dm2, dm->mattype)); in DMMoab_UMR_Private()
/petsc/src/dm/impls/sliced/
H A Dsliced.c28 PetscCall(MatSetType(*J, dm->mattype)); in DMCreateMatrix_Sliced()
/petsc/src/snes/tutorials/
H A Dex48.c273 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 Dpastix.c422 static PetscErrorCode MatGetFactor_pastix(Mat A, MatFactorType ftype, Mat *F, const char *mattype) in MatGetFactor_pastix() argument
/petsc/src/dm/impls/redundant/
H A Ddmredundant.c20 PetscCall(MatSetType(*J, dm->mattype)); in DMCreateMatrix_Redundant()

12