| /petsc/src/vec/is/sf/tests/ |
| H A D | ex25.c | 14 MPI_Datatype newtype; in main() local 44 PetscCallMPI(MPI_Type_contiguous_c(m, MPI_INT, &newtype)); in main() 46 PetscCallMPI(MPI_Type_contiguous(m, MPI_INT, &newtype)); in main() 49 PetscCallMPI(MPI_Type_commit(&newtype)); in main() 51 …PetscCall(PetscSFBcastBegin(sf, newtype, rootdata, leafdata, MPI_REPLACE)); // bcast rootdata to … in main() 52 PetscCall(PetscSFBcastEnd(sf, newtype, rootdata, leafdata, MPI_REPLACE)); in main() 56 PetscCallMPI(MPI_Type_free(&newtype)); in main()
|
| /petsc/src/mat/utils/ |
| H A D | convert.c | 7 PetscErrorCode MatConvert_Basic(Mat mat, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Basic() argument 17 PetscCall(MatConvert_Shell(mat, newtype, reuse, newmat)); in MatConvert_Basic() 33 PetscCall(MatSetType(M, newtype)); in MatConvert_Basic()
|
| /petsc/include/petsc/mpiuni/ |
| H A D | mpi.h | 466 …#define MPI_Type_dup(oldtype, newtype) (*(newtype) = oldtype, MPI_… argument 467 …#define MPI_Type_contiguous(count, oldtype, newtype) (*(newtype) = (MPI_COMBINER… argument 468 …, stride, oldtype, newtype) (MPIUNI_ARG(count), MPIUNI_ARG(blocklength), MPIUNI_ARG(stride), MPIU… argument 469 …h, stride, oldtype, newtype) (MPIUNI_ARG(count), MPIUNI_ARG(blocklength), MPIUNI_ARG(stride), MPIU… argument 470 #define MPI_Type_indexed(count, array_of_blocklengths, array_of_displacements, oldtype, newtype) \ argument 471 …hs), MPIUNI_ARG(array_of_displacements), MPIUNI_ARG(oldtype), MPIUNI_ARG(newtype), MPIUni_Abort(MP… 472 …#define MPI_Type_hindexed(count, array_of_blocklengths, array_of_displacements, oldtype, newtype) \ argument 473 …hs), MPIUNI_ARG(array_of_displacements), MPIUNI_ARG(oldtype), MPIUNI_ARG(newtype), MPIUni_Abort(MP… 474 …Type_create_struct(count, array_of_blocklengths, array_of_displacements, array_of_types, newtype) \ argument 475 …IUNI_ARG(array_of_displacements), MPIUNI_ARG(array_of_types), MPIUNI_ARG(newtype), MPIUni_Abort(MP… [all …]
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmstream.hpp | 86 inline PetscErrorCode CUPMStream<T>::change_type(PetscStreamType newtype) noexcept in change_type() argument 89 if (newtype == PETSC_STREAM_DEFAULT || newtype == PETSC_STREAM_DEFAULT_WITH_BARRIER) { in change_type()
|
| /petsc/src/mat/impls/dense/seq/cupm/cuda/ |
| H A D | matseqdensecuda.cu | 34 PetscErrorCode MatConvert_SeqDense_SeqDenseCUDA(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_SeqDense_SeqDenseCUDA() argument 37 PetscCall(cupm_mat.Convert_SeqDense_SeqDenseCUPM(A, newtype, reuse, newmat)); in MatConvert_SeqDense_SeqDenseCUDA()
|
| /petsc/src/mat/impls/dense/seq/cupm/hip/ |
| H A D | matseqdensehip.hip.cxx | 34 PetscErrorCode MatConvert_SeqDense_SeqDenseHIP(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_SeqDense_SeqDenseHIP() argument 37 PetscCall(cupm_mat.Convert_SeqDense_SeqDenseCUPM(A, newtype, reuse, newmat)); in MatConvert_SeqDense_SeqDenseHIP()
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpiaijbaij.c | 8 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPIBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_MPIAIJ_MPIBAIJ() argument 48 PetscCall(MatConvert_Basic(A, newtype, MAT_REUSE_MATRIX, &M)); in MatConvert_MPIAIJ_MPIBAIJ()
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mpiaijsbaij.c | 10 PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPISBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_MPIAIJ_MPISBAIJ() argument 43 PetscCall(MatConvert_Basic(A, newtype, MAT_REUSE_MATRIX, &M)); in MatConvert_MPIAIJ_MPISBAIJ() 51 PETSC_INTERN PetscErrorCode MatConvert_MPIBAIJ_MPISBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_MPIBAIJ_MPISBAIJ() argument
|
| /petsc/src/mat/impls/baij/seq/ |
| H A D | aijbaij.c | 3 PETSC_INTERN PetscErrorCode MatConvert_SeqBAIJ_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_SeqBAIJ_SeqAIJ() argument 92 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_SeqBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_SeqAIJ_SeqBAIJ() argument 124 PetscCall(MatConvert_Basic(A, newtype, MAT_REUSE_MATRIX, &B)); in MatConvert_SeqAIJ_SeqBAIJ()
|
| /petsc/src/mat/impls/shell/ |
| H A D | shellcnv.c | 4 PetscErrorCode MatConvert_Shell(Mat oldmat, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Shell() argument 23 PetscCall(MatSetType(mat, newtype)); in MatConvert_Shell() 221 PetscErrorCode MatConvertFrom_Shell(Mat A, MatType newtype, MatReuse reuse, Mat *B) in MatConvertFrom_Shell() argument 227 PetscCall(PetscStrcmp(newtype, MATSHELL, &flg)); in MatConvertFrom_Shell()
|
| /petsc/src/mat/impls/sbaij/seq/ |
| H A D | aijsbaij.c | 5 PETSC_INTERN PetscErrorCode MatConvert_SeqSBAIJ_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_SeqSBAIJ_SeqAIJ() argument 163 PETSC_INTERN PetscErrorCode MatConvert_SeqAIJ_SeqSBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_SeqAIJ_SeqSBAIJ() argument 227 PetscCall(MatConvert_Basic(A, newtype, MAT_REUSE_MATRIX, &B)); in MatConvert_SeqAIJ_SeqSBAIJ() 235 PETSC_INTERN PetscErrorCode MatConvert_SeqSBAIJ_SeqBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_SeqSBAIJ_SeqBAIJ() argument 329 PETSC_INTERN PetscErrorCode MatConvert_SeqBAIJ_SeqSBAIJ(Mat A, MatType newtype, MatReuse reuse, Mat… in MatConvert_SeqBAIJ_SeqSBAIJ() argument
|
| /petsc/src/mat/impls/dense/mpi/ |
| H A D | mpidense.h | 37 PETSC_INTERN PetscErrorCode MatConvert_SeqDense_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat …
|
| /petsc/src/mat/impls/transpose/ |
| H A D | transm.c | 526 static PetscErrorCode MatConvert_Transpose(Mat N, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Transpose() argument 543 PetscCall(MatConvert(B, newtype, reuse, newmat)); in MatConvert_Transpose() 546 PetscCall(MatConvert(B, newtype, MAT_INPLACE_MATRIX, &B)); in MatConvert_Transpose() 551 PetscCall(MatConvert_Basic(N, newtype, reuse, newmat)); in MatConvert_Transpose()
|
| H A D | htransm.c | 550 static PetscErrorCode MatConvert_HT(Mat N, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_HT() argument 567 PetscCall(MatConvert(B, newtype, reuse, newmat)); in MatConvert_HT() 570 PetscCall(MatConvert(B, newtype, MAT_INPLACE_MATRIX, &B)); in MatConvert_HT() 575 PetscCall(MatConvert_Basic(N, newtype, reuse, newmat)); in MatConvert_HT()
|
| /petsc/src/tao/matrix/ |
| H A D | adamat.c | 258 PETSC_INTERN PetscErrorCode MatConvert_ADA(Mat mat, MatType newtype, Mat *NewMat) in MatConvert_ADA() argument 268 PetscCall(PetscObjectTypeCompare((PetscObject)mat, newtype, &sametype)); in MatConvert_ADA()
|
| /petsc/src/mat/impls/maij/ |
| H A D | maij.c | 871 PETSC_INTERN PetscErrorCode MatConvert_SeqMAIJ_SeqAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_SeqMAIJ_SeqAIJ() argument 889 PetscCall(MatSetType(B, newtype)); in MatConvert_SeqMAIJ_SeqAIJ() 917 PETSC_INTERN PetscErrorCode MatConvert_MPIMAIJ_MPIAIJ(Mat A, MatType newtype, MatReuse reuse, Mat *… in MatConvert_MPIMAIJ_MPIAIJ() argument 942 PetscCall(MatSetType(B, newtype)); in MatConvert_MPIMAIJ_MPIAIJ()
|
| /petsc/src/mat/impls/nest/ |
| H A D | matnest.c | 1784 static PetscErrorCode MatConvert_Nest_SeqAIJ_fast(Mat A, MatType newtype, MatReuse reuse, Mat *newm… in MatConvert_Nest_SeqAIJ_fast() argument 2017 static PetscErrorCode MatConvert_Nest_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Nest_AIJ() argument 2030 PetscCall(PetscStrcmp(newtype, MATAIJ, &fast)); in MatConvert_Nest_AIJ() 2031 if (!fast) PetscCall(PetscStrcmp(newtype, MATSEQAIJ, &fast)); in MatConvert_Nest_AIJ() 2089 PetscCall(MatConvert_Nest_SeqAIJ_fast(A, newtype, reuse, newmat)); in MatConvert_Nest_AIJ() 2099 PetscCall(MatSetType(C, newtype)); in MatConvert_Nest_AIJ() 2205 static PetscErrorCode MatConvert_Nest_Dense(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Nest_Dense() argument
|
| /petsc/src/mat/impls/normal/ |
| H A D | normmh.c | 204 static PetscErrorCode MatConvert_NormalHermitian_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *n… in MatConvert_NormalHermitian_AIJ() argument
|
| H A D | normm.c | 220 static PetscErrorCode MatConvert_Normal_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_Normal_AIJ() argument
|
| /petsc/src/mat/impls/hypre/ |
| H A D | mhypre.c | 622 MatType newtype; local 625 newtype = ismpi ? MATMPIAIJ : MATSEQAIJ; 627 PetscCall(MatConvert(*B, newtype, MAT_INPLACE_MATRIX, B)); 628 PetscCall(MatConvert(A, newtype, MAT_REUSE_MATRIX, B)); 631 PetscCall(MatConvert(A, newtype, MAT_INITIAL_MATRIX, B)); 634 PetscCall(MatConvert(A, newtype, MAT_INPLACE_MATRIX, &A));
|
| /petsc/src/mat/impls/scalapack/ |
| H A D | matscalapack.c | 973 static PetscErrorCode MatConvert_ScaLAPACK_Dense(Mat A, MatType newtype, MatReuse reuse, Mat *B) in MatConvert_ScaLAPACK_Dense() argument 1088 PETSC_INTERN PetscErrorCode MatConvert_Dense_ScaLAPACK(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_Dense_ScaLAPACK() argument 1152 PETSC_INTERN PetscErrorCode MatConvert_AIJ_ScaLAPACK(Mat A, MatType newtype, MatReuse reuse, Mat *n… in MatConvert_AIJ_ScaLAPACK() argument 1186 PETSC_INTERN PetscErrorCode MatConvert_SBAIJ_ScaLAPACK(Mat A, MatType newtype, MatReuse reuse, Mat … in MatConvert_SBAIJ_ScaLAPACK() argument
|
| /petsc/src/sys/mpiuni/ |
| H A D | mpi.c | 761 …nt *array_of_blocklengths, int *array_of_displaments, int *array_of_types, int *newtype, int *ierr) in petsc_mpi_type_struct_() argument
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 4348 PetscErrorCode MatConvert(Mat mat, MatType newtype, MatReuse reuse, Mat *M) in MatConvert() argument 4364 if (flg) newtype = mtype; in MatConvert() 4366 PetscCall(PetscObjectTypeCompare((PetscObject)mat, newtype, &sametype)); in MatConvert() 4367 PetscCall(PetscStrcmp(newtype, "same", &issame)); in MatConvert() 4406 PetscCall(PetscStrlcat(convname, newtype, sizeof(convname))); in MatConvert() 4430 …PetscCall(PetscStrlcat(convname, issame ? ((PetscObject)mat)->type_name : newtype, sizeof(convname… in MatConvert() 4440 PetscCall(MatSetType(B, newtype)); in MatConvert() 4446 PetscCall(PetscStrlcat(convname, newtype, sizeof(convname))); in MatConvert() 4473 PetscCall((*conv)(mat, newtype, reuse, M)); in MatConvert()
|
| /petsc/src/mat/impls/kaij/ |
| H A D | kaij.c | 792 static PetscErrorCode MatConvert_KAIJ_AIJ(Mat A, MatType newtype, MatReuse reuse, Mat *newmat) in MatConvert_KAIJ_AIJ() argument 849 PetscCall(MatConvert_Basic(A, newtype, MAT_REUSE_MATRIX, &B)); in MatConvert_KAIJ_AIJ()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 4082 PetscErrorCode DMConvert(DM dm, DMType newtype, DM *M) in DMConvert() argument 4092 PetscCall(PetscObjectTypeCompare((PetscObject)dm, newtype, &sametype)); in DMConvert() 4114 PetscCall(PetscStrlcat(convname, newtype, sizeof(convname))); in DMConvert() 4121 PetscCall(DMSetType(B, newtype)); in DMConvert() 4125 PetscCall(PetscStrlcat(convname, newtype, sizeof(convname))); in DMConvert() 4145 …R_SUP, "No conversion possible between DM types %s and %s", ((PetscObject)dm)->type_name, newtype); in DMConvert() 4149 PetscCall((*conv)(dm, newtype, M)); in DMConvert()
|