<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Evan:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear PETSC-users,<div><br></div><div>I use parallel direct solver MUMPS inside PETSC and need to control some MUMPS parameters inside PETSC. For example, I want to set up MUMPS parameters as shown below.</div><div><br></div><div> ZMUMPS_STRUC_C id;</div><div><div> id.job=-1; /* Initialize mumps instance*/ </div></div></div></blockquote><div>This is set in petsc/mumps interface. See line 1197, mumps.c</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div> id.par=1;  /* 0: host is not involved in solution processes */</div></div></div></blockquote><div> id.par=1; is used in the interface. See line 1198, id.par=1;</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div> id.sym=2;  /* 0:unsysm, 2:general symmetric matrix */</div></div></div></blockquote><div>id.sym is set in the interface based on the input matrix type, see line 2154-2171</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>How can I access structure similar to id in PETSC?</div></div></blockquote><div>Why do you want access id? </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>For example, I control my icntl parameters like this. </div><div><br></div><div>PCFactorGetMatrix(pc, &F);<span style="white-space:pre-wrap">    </span><br></div><div>MatMumpsSetIcntl(F, icntl[i], ival[i]);<br></div><div><br></div><div>However, it is not clear about how to control id.par and id.sym. If you have any experience in controlling id.par and id.sym inside PETSC, I request your help. In advance, thank you  very much for your help.</div></div></blockquote><div> </div><div>Petsc/mumps interface is developed for petsc users to call mumps direct solvers under petsc environment. The parameters id.par, id.sym ... are set in the interface according to the user's matrix and solver type, thus user does not need to know about them.</div><div><br></div><div>Hong</div></div><br></div></div>