<div dir="ltr">I can actually use some command line arguments. My line arguments actually read<div><br></div><div>-snes_mf -green_snes_monitor</div><div><br></div><div>and the first -snes_mf argument (for the main solver snes) is correctly taken into account.</div><div>I will try what Barry suggested, I'll tell you if I find the reason.</div><div><br></div><div>Best regards, thanks for your comments</div><div><br></div><div>Timothée</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 15 janv. 2020 à 18:56, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> a écrit :<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">I think that Mark is suggesting that no command line arguments are getting in.<div><br></div><div>Timothee,</div><div><br></div><div>Can you use any command line arguments?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 15, 2020 at 12:04 PM Smith, Barry F. via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Should still work. Run in the debugger and put a break point in snessetoptionsprefix_ and see what it is trying to do<br>
<br>
Barry<br>
<br>
<br>
> On Jan 15, 2020, at 8:58 AM, Timothée Nicolas <<a href="mailto:timothee.nicolas@gmail.com" target="_blank">timothee.nicolas@gmail.com</a>> wrote:<br>
> <br>
> Hi, thanks for your answer,<br>
> <br>
> I'm using Petsc version 3.10.4<br>
> <br>
> Timothée<br>
> <br>
> Le mer. 15 janv. 2020 à 14:59, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> a écrit :<br>
> I'm guessing a Fortran issue. What version of PETSc are you using?<br>
> <br>
> On Wed, Jan 15, 2020 at 8:36 AM Timothée Nicolas <<a href="mailto:timothee.nicolas@gmail.com" target="_blank">timothee.nicolas@gmail.com</a>> wrote:<br>
> Dear PETSc users,<br>
> <br>
> I am confused by the usage of SNESSetOptionsPrefix. I understand this is required if you have for example different SNES in your program and want to set different options for them.<br>
> So for my second snes I wrote <br>
> <br>
> call SNESCreate(MPI_COMM_SELF,snes,ierr)<br>
> call SNESSetOptionsPrefix(snes,'green_',ierr)<br>
> call SNESSetFromOptions(snes,ierr)<br>
> <br>
> etc.<br>
> <br>
> Then when launching the program I wanted to monitor that snes so I launched it with the option -green_snes_monitor instead of -snes_monitor. But I keep getting the message<br>
> <br>
> WARNING! There are options you set that were not used!<br>
> WARNING! could be spelling mistake, etc!<br>
> Option left: name:-green_snes_monitor (no value)<br>
> <br>
> What do I miss here?<br>
> <br>
> Best regards<br>
> <br>
> Timothée NICOLAS<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>
</blockquote></div>