Hello,
I get the error “RuntimeError: Failed to successfully call PETSc function ‘KSPSolve’. PETSc error code is: 76” on my script.
From google search, it means out of memory error due to some software limitation. The suggested solution is to switch to mumps, however, it might already be the case (see below). To give more context, I’m using mpirun with 12 processors, on the docker image. From htop the machine memory usage is bellow 7Gb (of 250Gb).
For what it’s worth, I had the same issue, I switched to an iterative solver (i.e. opts[f"{option_prefix}pc_type"] = "ksp") and I no longer have the problem.
I think LU is just too greedy memory-wise for large systems.
Just adding my experience to this thread, since I didn’t find it in any of the threads containing Error 76
I’ve encountered this error when i set the quadrature degree too low and effectively underintegrated my forms. This lead to my matrix not having full rank and the default solver produced infinity results. (and error 76)
My system was definitely not too big (Only one element).
Changing the solver did not change this, however I can imagine, that changing to an iterative solver may solve this problem in some cases, since iterative solvers may still work for some matrices without full rank.
In my case, I just needed to make sure that the quadrature degree was sufficiently large.