Commits

Lisandro Dalcin  committed 96b0214

Backward compatibility for petsc-3.4

  • Participants
  • Parent commits 52642ec

Comments (0)

Files changed (1)

File src/petigamat.c

 typedef const char* MatType;
 #endif
 
+#if PETSC_VERSION_LT(3,5,0)
+#define MatPreallocateSymmetricSetBlock MatPreallocateSymmetricSet
+#endif
+
 PETSC_EXTERN PetscErrorCode MatHeaderReplace(Mat,Mat);
 static       PetscErrorCode MatView_MPI_IGA(Mat,PetscViewer);
 static       PetscErrorCode MatLoad_MPI_IGA(Mat,PetscViewer);
                 ierr = MatPreallocateSet(row,count,indices,dnz,onz);CHKERRQ(ierr);
               } else if (sbaij) {
                 ierr = FilterLowerTriangular(row,&count,indices);CHKERRQ(ierr);
-                #if PETSC_VERSION_LT(3,5,0)
-                ierr = MatPreallocateSymmetricSet(row,count,indices,dnz,onz);CHKERRQ(ierr);
-                #else
                 ierr = MatPreallocateSymmetricSetBlock(row,count,indices,dnz,onz);CHKERRQ(ierr);
-                #endif
               }
             } /* */
       ierr = PetscFree2(ubrows,ubcols);CHKERRQ(ierr);