<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">David :<br>
</div>
<div>Petsc does not support parallel LU. For dense matrix, you can use Elemental. See example</div>
<div>petsc/src/ksp/ksp/examples/tests/ex40.c<br>
</div>
<div>Hong</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>i was trying to solve a linear system with a MPIDENSE matrix. I did</div>
<div><span style="font-family:tahoma,sans-serif">PC pc;<br>
KSPGetPC(solver, &pc);<br>
PCSetType(pc, PCLU); <br>
KSPSetOperators(solver, a_petsc, a_petsc);</span></div>
<div>for some KSP solver and some Mat a_petsc. When i run the code sequentially (mpirun -n 1) it works, but once i start it in parallel it breaks with the error message</div>
<div><i>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------                                                                          
<br>
[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/linearsolvertable.html" target="_blank">
http://www.mcs.anl.gov/petsc/documentation/linearsolvertable.html</a> for possible LU and Cholesky solvers                                                                  
<br>
[0]PETSC ERROR: Could not locate a solver package. Perhaps you must ./configure with --download-<package>                                                                                   
<br>
[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">
http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.                                                                                               
<br>
[0]PETSC ERROR: Petsc Release Version 3.9.3, unknown                                                                                                                                        
<br>
[0]PETSC ERROR: Unknown Name on a arch-linux2-c-debug named manjaroDesktop by david Tue Oct  2 16:47:10 2018                                                                                
<br>
[0]PETSC ERROR: Configure options --download-superlu_dist --download-parmetis --download-metis --download-ptscotch                                                                          
<br>
[0]PETSC ERROR: #1 MatGetFactor() line 4328 in /home/david/lib/petsc/src/mat/interface/matrix.c     </i>                                                                                        
<br>
</div>
<div>I recompiled petsc with the recommended options (and also trying some other options) but the error persists. on the linear solve table there is an X at the required solver package column for dense LU. What does it mean? On
<br>
</div>
<div><a href="https://www.mcs.anl.gov/petsc/petsc-3.2/docs/linearsolvertable.html" target="_blank">https://www.mcs.anl.gov/petsc/petsc-3.2/docs/linearsolvertable.html</a></div>
<div>it says "PLAPACK". Did you deprecate it? What is the replacement?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>David Sommer<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>