Commit dd9a375c authored by Kirill Terekhov's avatar Kirill Terekhov

Update petsc

For newer PetscOptionsGetString
parent a0575710
......@@ -255,7 +255,7 @@ bool SolverSolvePetsc(KSP *ksp, Vec *rhs, Vec *sol) {
char *prefix;
ierr = KSPGetOptionsPrefix(*ksp, const_cast<const char **>(&prefix));
if (ierr != PETSC_SUCCESS) throw INMOST::ErrorInSolver;
ierr = PetscOptionsGetString(prefix, "-ksp_type", typeksp, 2048, &haveksp);
ierr = PetscOptionsGetString(NULL,prefix, "-ksp_type", typeksp, 2048, &haveksp);
if (ierr != PETSC_SUCCESS) throw INMOST::ErrorInSolver;
if (haveksp && !strcmp(typeksp, "preonly")) guess = false;
if (guess) {
......
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