You can call PetscOptionsSetValue("-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.
Barry
> On Feb 28, 2022, at 2:22 PM, Sam Guo <[email protected]> wrote:
>
> Dear PETSc dev team,
> I would like to set MUMPS OOC_TMPDIR programmatically on fly (instead of
> statically using PetscOptionsString
> <https://petsc.org/main/docs/manualpages/Sys/PetscOptionsString.html#PetscOptionsString>("-mat_mumps_ooc_tmpdir",
> "out of core directory", "None", mumps->id.ooc_tmpdir, mumps->id.ooc_tmpdir,
> sizeof(mumps->id.ooc_tmpdir), NULL);). It seems there is such an API, am I
> correct?
>
> Thanks,
> Sam