Hi, I’m trying to run an elliptic equation solver with random coefficients for many times (to sample the coefficient). But I got the following error. I saw the same error in this post, but I still do not know the solution. Error setting PETSc options repeatedly.
Attached a mini example of what I have. It get to this error after about 170 times.
Traceback (most recent call last):
File “/home/shared/mini.py”, line 57, in
solver.solve(sample)
File “/home/shared/mini.py”, line 47, in solve
problem = fem.petsc.LinearProblem(a, L, bcs=self.bcs, petsc_options={“ksp_type”: “preonly”, “pc_type”: “lu”, “pc_factor_mat_solver_type”: “mumps”})
File “/usr/lib/petsc/lib/python3/dist-packages/dolfinx/fem/petsc.py”, line 589, in init
opts[k] = v
File “PETSc/Options.pyx”, line 23, in petsc4py.PETSc.Options.setitem
File “PETSc/Options.pyx”, line 91, in petsc4py.PETSc.Options.setValue
petsc4py.PETSc.Error: error code 55
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[50127,1],0]
Exit code: 1
google drive with the mini example. mini_example - Google Drive