Skip to content

Commit

Permalink
Update ngsPETSc test due to change in KrylovSolver public interface
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Jun 18, 2024
1 parent 7cd3d1d commit e507e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngsolve/test-ngspetsc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@
"metadata": {},
"outputs": [],
"source": [
"gfu = GridFunction(fes)\n",
"solver = KrylovSolver(a, fes, solverParameters={\"ksp_type\": \"preonly\", \"pc_type\": \"lu\"})\n",
"gfu = solver.solve(F)"
"solver.solve(F.vec, gfu.vec)"
]
},
{
Expand Down

0 comments on commit e507e00

Please sign in to comment.