Author Topic: Why is ILU0Preconditioner not available right now?  (Read 286 times)

Ignasi de Pouplana

  • Newbie
  • *
  • Posts: 21
Why is ILU0Preconditioner not available right now?
« on: August 31, 2016, 10:54:26 AM »
Hi,

I often use the BICGSTABSolver along with the ILU0Preconditioner and, looking at the new_linear_solver_factory.py, I realized that the latter is commented:

Code: [Select]
    if(configuration["preconditioner_type"].GetString() == "None"):
        return KratosMultiphysics.Preconditioner()
    elif(configuration["preconditioner_type"].GetString() == "DiagonalPreconditioner"):
        return KratosMultiphysics.DiagonalPreconditioner()
    elif(configuration["preconditioner_type"].GetString() == "ILU0Preconditioner"):
        return KratosMultiphysics.DiagonalPreconditioner() #ILU0Preconditioner()   
    elif(configuration["preconditioner_type"].GetString() == "ILUPreconditioner"):
        return KratosMultiphysics.ILUPreconditioner()

Is there a reason for it to be avoided?

Thanks in advance,

Ignasi

riccardo

  • Global Moderator
  • Newbie
  • *****
  • Posts: 47
Re: Why is ILU0Preconditioner not available right now?
« Reply #1 on: September 06, 2016, 02:06:33 PM »
no it was committed by error.

could you submit the correction?

however there is a memory error deeply rooted in ilu0. I don't think it affects (that is, the code should work), it is however inconvenient if you run valgrind


Riccardo

Ignasi de Pouplana

  • Newbie
  • *
  • Posts: 21
Re: Why is ILU0Preconditioner not available right now?
« Reply #2 on: September 06, 2016, 03:24:58 PM »
Ok, I just committed the correction.

Regards,

Ignasi