Commit 79eef411 authored by Praetorius, Simon's avatar Praetorius, Simon

Merge branch 'issue/petsc_3-7' into 'master'

PetscOptionsView corrected for petsc 3.7

Another incompatibility wiht petsc 3.7. solved

See merge request !16
parents 0baa9483 2b5c8682
......@@ -308,7 +308,11 @@ namespace AMDiS
PetscViewer viewer;
PetscViewerCreate(PETSC_COMM_WORLD, &viewer);
PetscViewerSetType(viewer, PETSCVIEWERASCII);
#if (PETSC_VERSION_MINOR >= 7)
PetscOptionsView(PETSC_NULL, viewer);
#else
PetscOptionsView(viewer);
#endif
PetscViewerDestroy(&viewer);
#endif
}
......
......@@ -95,8 +95,13 @@ namespace AMDiS { namespace Parallel {
PetscViewer viewer;
PetscViewerCreate(PETSC_COMM_WORLD, &viewer);
PetscViewerSetType(viewer, PETSCVIEWERASCII);
#if (PETSC_VERSION_MINOR >= 7)
PetscOptionsView(PETSC_NULL, viewer);
#else
PetscOptionsView(viewer);
#endif
PetscViewerDestroy(&viewer);
}
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment