<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> Yes, it automatically uses the same factorization.<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 4, 2020, at 6:55 PM, Anthony Paul Haas <<a href="mailto:aph@email.arizona.edu" class="">aph@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">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" class="">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" class="">KSPSolve</span>?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Anthony</div><div class=""><br class=""></div><div class=""><span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)" class="">call</span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class=""> </span><span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)" class="">KSPSetType</span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">(self%ksp,KSPPREONLY,self%ierr_ps)</span><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)" class="">call</span><span style="font-variant-ligatures:no-common-ligatures" class=""> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)" class="">KSPGetPC</span><span style="font-variant-ligatures:no-common-ligatures" class="">(self%ksp,pc,self%ierr_ps)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(203, 36, 24);" class=""> <br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)" class="">call</span><span style="font-variant-ligatures:no-common-ligatures" class=""> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)" class="">PCSetType</span><span style="font-variant-ligatures:no-common-ligatures" class="">(pc,PCLU,self%ierr_ps)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(203, 36, 24);" class=""> <br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)" class="">call</span><span style="font-variant-ligatures:no-common-ligatures" class=""> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(74,0,255)" class="">PCFactorSetMatSolverPackage</span><span style="font-variant-ligatures:no-common-ligatures" class="">(pc,MATSOLVERMUMPS,self%ierr_ps)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(74, 0, 255);" class=""><span style="font-variant-ligatures:no-common-ligatures;color:rgb(194,0,255)" class="">call</span><span style="font-variant-ligatures: no-common-ligatures;" class=""> </span><span style="font-variant-ligatures:no-common-ligatures" class="">PCFactorSetUpMatSolverPackage</span><span style="font-variant-ligatures: no-common-ligatures;" class="">(pc,self%ierr_ps)</span></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>