Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer, es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Ein Anmelden über dieses erzeugt ein neues Konto. Das alte Konto ist über den Reiter "Standard" erreichbar. Die Administratoren

Dear Gitlab user, it is now possible to log in to our service using the ZIH login/LDAP. Logging in via this will create a new account. The old account can be accessed via the "Standard" tab. The administrators

Commit 2b5c8682 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

PetscOptionsView corrected for petsc 3.7

parent f6acd549
...@@ -308,7 +308,11 @@ namespace AMDiS ...@@ -308,7 +308,11 @@ namespace AMDiS
PetscViewer viewer; PetscViewer viewer;
PetscViewerCreate(PETSC_COMM_WORLD, &viewer); PetscViewerCreate(PETSC_COMM_WORLD, &viewer);
PetscViewerSetType(viewer, PETSCVIEWERASCII); PetscViewerSetType(viewer, PETSCVIEWERASCII);
#if (PETSC_VERSION_MINOR >= 7)
PetscOptionsView(PETSC_NULL, viewer);
#else
PetscOptionsView(viewer); PetscOptionsView(viewer);
#endif
PetscViewerDestroy(&viewer); PetscViewerDestroy(&viewer);
#endif #endif
} }
......
...@@ -95,8 +95,13 @@ namespace AMDiS { namespace Parallel { ...@@ -95,8 +95,13 @@ namespace AMDiS { namespace Parallel {
PetscViewer viewer; PetscViewer viewer;
PetscViewerCreate(PETSC_COMM_WORLD, &viewer); PetscViewerCreate(PETSC_COMM_WORLD, &viewer);
PetscViewerSetType(viewer, PETSCVIEWERASCII); PetscViewerSetType(viewer, PETSCVIEWERASCII);
#if (PETSC_VERSION_MINOR >= 7)
PetscOptionsView(PETSC_NULL, viewer);
#else
PetscOptionsView(viewer); PetscOptionsView(viewer);
#endif
PetscViewerDestroy(&viewer); PetscViewerDestroy(&viewer);
} }
#endif #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