On Thu, Jun 4, 2009 at 4:15 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, 4 Jun 2009, Matthew Knepley wrote:<br>
<br>
> On Thu, Jun 4, 2009 at 3:37 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
><br>
> > Barry/Matt,<br>
> ><br>
> > Should we make optfile in PetscIntialize(optfile) optional?<br>
><br>
><br>
> Why would the user give an argument for optfile, but not intend it to be<br>
> found?<br>
<br>
</div>Normally command line options is the way to pass in optional flags to<br>
a petsc binary. In this application - command line options are not<br>
possible [due to python/other packages that control main] - hence an<br>
PetscIntialize("petscopt") is used to pass in equivalent optional<br>
flags.<br>
<br>
<br>
Also In this code - PETSc [solver] usage is optional. I guess there<br>
are 2 ways of implementing this.<br>
<br>
The first is to always call PetscInitialize()/Finalize() - but<br>
optionally use PETSc solvers. [in this case optfile should be<br>
optional]</blockquote><div><br>I have no idea what you mean here. Why does optfile have to be an optional argument?<br>That makes no sense at all. You provide an argument, but only want it used sometimes?<br>DONT PROVIDE IT if it should not be used.<br>
<br>  Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The other mode is to avoid PetscIntialize()/Finalize() - when<br>
non-petsc solvers are selected.  [but this means more complicated<br>
options check - before PetscIntialize()/MPI_Init() is called. The code<br>
currently tries to do this - ocassionaly errors such as this pop-up]<br>
<br>
<br>
I guess Ideally - the optional_flag should be exposed all the way to<br>
PetscInitialize() - so the user can make the choice if this opt-file<br>
is optional or required..<br>
<font color="#888888"><br>
Satish<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>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<br>