<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> You can call PetscOptionsSetValue(<span style="color: rgb(102, 102, 102);" class="">"-mat_mumps_ooc_tmpdir","directory"); anytime before the KSP/PCSetUp() is called. If you have multiple uses of MUMPs solvers you can call this between each use so that a different directory is used for different MUMPS usage.</span><div class=""><font color="#666666" class=""><span style="caret-color: rgb(102, 102, 102);" class=""><br class=""></span></font></div><div class=""><font color="#666666" class=""><span style="caret-color: rgb(102, 102, 102);" class=""> Barry</span></font></div><div class=""><font color="#666666" class=""><span style="caret-color: rgb(102, 102, 102);" class=""><br class=""></span></font><div class=""><font color="#666666" class=""><span style="caret-color: rgb(102, 102, 102);" class=""><br class=""></span></font><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 28, 2022, at 2:22 PM, Sam Guo <<a href="mailto:sam.guo@cd-adapco.com" class="">sam.guo@cd-adapco.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear PETSc dev team,<div class=""> I would like to set MUMPS OOC_TMPDIR programmatically on fly (instead of statically using <a href="https://petsc.org/main/docs/manualpages/Sys/PetscOptionsString.html#PetscOptionsString" class="">PetscOptionsString</a><span style="" class="">(</span><font color="#666666" class="">"-mat_mumps_ooc_tmpdir"</font><span style="" class="">, </span><font color="#666666" class="">"out of core directory"</font><span style="" class="">, </span><font color="#666666" class="">"None"</font><span style="" class="">, mumps->id.ooc_tmpdir, mumps->id.ooc_tmpdir, </span><font color="#4169E1" class="">sizeof</font><span style="" class="">(mumps->id.ooc_tmpdir), NULL);). It seems there is such an API, am I correct? </span></div><div class=""><span style="" class=""><br class=""></span></div><div class=""><span style="" class="">Thanks,<br class="">Sam</span></div></div>
</div></blockquote></div><br class=""></div></div></body></html>