This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Setting MUMPS option

+2 votes

Hi

When I used Dolfin linear algebra backend Petsc, I used MUMPS as linear solver. However, there seems no control switch to set up INCTL manually through Parameters interface. Is it possible to do so ?

The other question is that is it possible to set Petsc command line options through Parameters ?

BR
Bui

asked Apr 28, 2014 by kstn FEniCS Novice (280 points)

1 Answer

+2 votes
 
Best answer

PETSc options can be set on the command line (you'll need to add a few lines to parse them), or you can use, for example:

PETScOptions.set("mat_mumps_icntl_14", 40.0)

The above is for Python. From the C++ interface:

PETScOptions::set("mat_mumps_icntl_14", 40.0);
answered Apr 28, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
selected Apr 29, 2014 by Jan Blechta

It somehow works but not perfectly, for example when I set
PETScOptions.set("ksp_max_it", 600)
It does not stop the iterations after 600 steps. Is there a reason for it ?

...