Commits

Lisandro Dalcin committed edbf2af

Update after {Vec|Mat}Type change in petsc-dev

  • Participants
  • Parent commits 904b863

Comments (0)

Files changed (4)

File src/petiga.c

 #define __FUNCT__ "IGASetVecType"
 PetscErrorCode IGASetVecType(IGA iga,const VecType vectype)
 {
-  VecType        vtype;
+  char           *vtype;
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(iga,IGA_CLASSID,1);
 #define __FUNCT__ "IGASetMatType"
 PetscErrorCode IGASetMatType(IGA iga,const MatType mattype)
 {
-  MatType        mtype;
+  char           *mtype;
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(iga,IGA_CLASSID,1);

File src/petigamat.c

   PetscInt       maxnnz;
   PetscInt       n,N,bs;
   LGMap          ltog,ltogb;
-  const MatType  mtype;
+  MatType        mtype;
   Mat            A;
   PetscErrorCode ierr;
   PetscFunctionBegin;

File src/petigapcb.c

 #endif
 #include "petigapc.h"
 
+#if PETSC_VERSION_(3,3,0) || PETSC_VERSION_(3,2,0)
+#undef MatType
+typedef const char* MatType;
+#endif         
+
 typedef struct {
   PetscInt dim,dof;
   PetscInt overlap[3];
   MPI_Comm       comm = ((PetscObject)A)->comm;
   PetscBool      aij,baij,sbaij;
   PetscInt       m,n,M,N,bs;
-  const MatType  mtype;
+  MatType        mtype;
   Mat            mat;
   PetscErrorCode ierr;
   PetscFunctionBegin;

File src/petigapce.c

 #endif
 #include "petigapc.h"
 
+#if PETSC_VERSION_(3,3,0) || PETSC_VERSION_(3,2,0)
+#undef MatType
+typedef const char* MatType;
+#endif         
+
 typedef struct {
   Mat mat;
 } PC_EBE;
         if (done) {
           PetscInt m,n,M,N,bs;
           PetscInt j,cstart,*newja;
-          const MatType mtype;
+          MatType mtype;
           ierr = MatGetType(A,&mtype);CHKERRQ(ierr);
           ierr = MatGetSize(A,&M,&N);CHKERRQ(ierr);
           ierr = MatGetLocalSize(A,&m,&n);CHKERRQ(ierr);