<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>When using Mumps to solve a linear system of equations (see below), can I reuse the factorization to solve for multiple RHS, ie, can I use <span style="color:rgb(74,0,255);font-family:Menlo;font-size:11px">KSPSolve</span> multiple times while only building a different RHS in between the calls to <span style="color:rgb(74,0,255);font-family:Menlo;font-size:11px">KSPSolve</span>?</div><div><br></div><div>Thanks,</div><div><br></div><div>Anthony</div><div><br></div><div><span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)">call</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures"> </span><span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)">KSPSetType</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">(self%ksp,KSPPREONLY,self%ierr_ps)</span><br></div><div>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)">call</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)">KSPGetPC</span><span style="font-variant-ligatures:no-common-ligatures">(self%ksp,pc,self%ierr_ps)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(203,36,24)">                                                                                                                                                                                     <br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)">call</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)">PCSetType</span><span style="font-variant-ligatures:no-common-ligatures">(pc,PCLU,self%ierr_ps)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(203,36,24)">                                                                                                                                                                                               <br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)">call</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)">PCFactorSetMatSolverPackage</span><span style="font-variant-ligatures:no-common-ligatures">(pc,MATSOLVERMUMPS,self%ierr_ps)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(74,0,255)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)">call</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">PCFactorSetUpMatSolverPackage</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(pc,self%ierr_ps)</span></p></div></div></div></div></div>