Petsc conifg opts changed

if this is exactly the same as above, maybe put it in a function in a function?