Skip to content
Snippets Groups Projects
Commit dc9052c9 authored by Gaetan Bricteux's avatar Gaetan Bricteux
Browse files

fix PETSc

parent 9f77dce3
No related branches found
No related tags found
No related merge requests found
...@@ -353,7 +353,11 @@ void linearSystemPETScBlockDouble::printMatlab(const char *filename) const ...@@ -353,7 +353,11 @@ void linearSystemPETScBlockDouble::printMatlab(const char *filename) const
PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_MATLAB); PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_MATLAB);
printf("export mat to %s\n", filename); printf("export mat to %s\n", filename);
MatView(_a, viewer); MatView(_a, viewer);
#if (PETSC_VERSION_RELEASE == 0 || ((PETSC_VERSION_MAJOR == 3) && (PETSC_VERSION_MINOR >= 2)))
PetscViewerDestroy(&viewer); PetscViewerDestroy(&viewer);
#else
PetscViewerDestroy(viewer);
#endif
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment