Skip to content
Snippets Groups Projects
Commit 6f103b64 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge pull request #1190 from chleh/petsc-3-7-0

Fix compilation for PETSc 3.7.0
parents 78e8f99e 5fe39b41
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,11 @@ PETScLinearSolver::PETScLinearSolver(const std::string /*prefix*/, ...@@ -46,7 +46,11 @@ PETScLinearSolver::PETScLinearSolver(const std::string /*prefix*/,
} }
} }
} }
#if PETSC_VERSION_LT(3,7,0)
PetscOptionsInsertString(petsc_options.c_str()); PetscOptionsInsertString(petsc_options.c_str());
#else
PetscOptionsInsertString(nullptr, petsc_options.c_str());
#endif
KSPCreate(PETSC_COMM_WORLD, &_solver); KSPCreate(PETSC_COMM_WORLD, &_solver);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment