Actual source code: matioall.c

      1: #define PETSCMAT_DLL

     3:  #include petscmat.h

      6: EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatConvertTo_MPIAdj(Mat,MatType,MatReuse,Mat*);
      7: EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatConvertTo_AIJ(Mat,MatType,MatReuse,Mat*);

     12: /*@C
     13:     MatConvertRegisterAll - Registers all standard matrix type routines to convert to

     15:   Not Collective

     17:   Level: developer

     19:   Notes: To prevent registering all matrix types; copy this routine to
     20:          your source code and comment out the versions below that you do not need.

     22: .seealso: MatRegister(), MatConvert()

     24: @*/
     25: PetscErrorCode PETSCMAT_DLLEXPORT MatConvertRegisterAll(const char path[])
     26: {

     30:   MatConvertRegisterAllCalled = PETSC_TRUE;
     31:   MatConvertRegisterDynamic(MATMPIADJ,path,"MatConvertTo_MPIAdj",MatConvertTo_MPIAdj);
     32:   MatConvertRegisterDynamic(MATAIJ,path,"MatConvertTo_AIJ",MatConvertTo_AIJ);
     33:   return(0);
     34: }