example of call to superlu_dist

Fredrik Bengzon fredrik.bengzon at math.umu.se
Wed May 6 13:16:15 CDT 2009


Thank you all,
After interchanging the calls to PCSetType and PCFactorSetMatSolver 
SuperLU_dist works.
/Fredrik

PCFactorSetMatSolverPackage

Now
Fredrik Bengzon

Satish Balay wrote:
> On Wed, 6 May 2009, Satish Balay wrote:
>
>   
>> PCFactorSetMatSolverPackage() works for me with a test example.
>>     
>
>   
>> On Wed, 6 May 2009, Fredrik Bengzon wrote:
>>
>>     
>>> Hi
>>> Is there an example of how to call superlu_dist somewhere. I'm  not looking
>>> for command line options, but how to call KSP in my code when using
>>> superlu_dist. I've set the KSPPREONLY, and PCLU options, and also made a call
>>> to PCFactorSetMatSolverPackage(), but this does not seem to be the right way
>>> to do it. Petsc aborts with error message 'mpiaij matrix does not have a
>>> build-in LU solver'. Do I need to specify any particular matrix format to use
>>> with superlu_dist? Any input is appreciated.
>>>       
>
> BTW: Did you build PETSc with superlu_dist? Do the examples work with
> superlu_dist - with the command line options:
>
> '-ksp_type preonly -pc_type lu -pc_factor_mat_solver_package superlu_dist'
>
> Satish
>
>   



More information about the petsc-users mailing list