<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> Note you can use -help to have the running code print all possible options it can currently handle. This produces a lot of output so generally, one can do things like<div><br></div><div>./code various options -help | grep mumps </div><div><br></div><div>to see what the exact option is named for mumps in your situation. </div><div><br></div><div> Also if you had run with -mpi_ksp_view as suggested in your previous output you sent *** Use -mpi_ksp_view to see the MPI KSP parameters *** it would show the options prefix for the mumps options (which in this case is -mpi_) so you would know the option should be given as -mpi_mat_mumps_icntl_7 5,</div><div><br></div><div> So, in summary, since nested solvers can have complicated nesting and options names, one can determine the exact names without guessing by either </div><div><br></div><div>1) running with -help and searching for the appropriate full option name or </div><div><br></div><div>2) running with the appropriate view command and locating the options prefix for particular solve you want to control.</div><div><br></div><div>We do this all the time, even though we wrote the code we cannot fully remember the options and figure out in our heads the full naming of nested solver options so we use 1) and 2) to determine them.</div><div><br></div><div>Barry</div><div><br><div><br><blockquote type="cite"><div>On Nov 30, 2022, at 12:52 AM, 김성익 <ksi2443@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Hello,<div><br></div><div><br></div><div>I tried to adopt METIS option in MUMPS by using <br>' PetscCall(MatMumpsSetIcntl(Mat, 7, 5));'</div><div><br></div><div>However, there is an error as follows</div><div><br></div><div>[0]PETSC ERROR: Object is in wrong state<br>[0]PETSC ERROR: Only for factored matrix<br>[0]PETSC ERROR: See <a href="https://petsc.org/release/faq/">https://petsc.org/release/faq/</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Release Version 3.18.1, unknown <br>[0]PETSC ERROR: ./app on a arch-linux-c-debug named ubuntu by ksi2443 Tue Nov 29 21:12:41 2022<br>[0]PETSC ERROR: Configure options -download-mumps -download-scalapack -download-parmetis -download-metis<br>[0]PETSC ERROR: #1 MatMumpsSetIcntl() at /home/ksi2443/petsc/src/mat/impls/aij/mpi/mumps/mumps.c:2478<br>[0]PETSC ERROR: #2 main() at /home/ksi2443/Downloads/coding/a1.c:149<br>[0]PETSC ERROR: No PETSc Option Table entries<br></div><div><br></div><div>How can I fix this error?</div><div><br></div><div>Thank you for your help.</div><div><br></div><div><br></div><div>Hyung Kim</div></div>
</div></blockquote></div><br></div></body></html>