<div dir="ltr">You can do it with the command line option "-options_left 0"<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-31 12:27 GMT+03:00 Guido Giuntoli <span dir="ltr"><<a href="mailto:giuntoli1991@gmail.com" target="_blank">giuntoli1991@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi, I have a program with the following structure<br><br>...<br>PETSC_COMM_WORLD = WORLD_COMM;<br>ierr = PetscInitialize(&argc,&argv,(<wbr>char*)0,help);<br>ierr = PetscOptionsGetBool(NULL, NULL, "-flag", &flag, &set); CHKERRQ(ierr);<br>...<br>ierr = PetscFinalize();<br>PETSC_COMM_WORLD = ANOTHER_COMM;<br>ierr = PetscInitialize(&argc,&argv,(<wbr>char*)0,help);<br>...<br>ierr = PetscFinalize();<br>...<br><br></div>The problem I want to avoid is PETSc to print <br><br>"WARNING! There are options you set that were not used!"<br><br></div>In the first part I use some options of the command line and in the second I am going to use others like the -ksp_xxxx. Which is the good way of avoiding that without touching petsc code ?<br><br></div>Thanks, Guido.<br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Stefano</div>
</div>