On Thu, Jun 4, 2009 at 3:37 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;">
Barry/Matt,<br>
<br>
Should we make optfile in PetscIntialize(optfile) optional?</blockquote><div><br>Why would the user give an argument for optfile, but not intend it to be found?<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>
Current code is:<br>
<br>
PetscIntialize("file") -> PetscOptionsInsert(optfile) -><br>
PetscOptionsInsertFile(optfile,PETSC_TRUE)<br>
<br>
i.e it gives error if the "optfile" is not found.<br>
<br>
Should the code be changed to use:<br>
PetscOptionsInsertFile(optfile,PETSC_FALSE)?<br>
<br>
<br>
Alternatives would be to expose the flag - a bit higher [i.e use<br>
PetscOptionsInsert(file,flg)] or expose it further up to<br>
PetscIntialize(optfile,flg). But changing PetscIntialize() might not<br>
be desireable.<br>
<br>
<br>
I'm inclined to use:<br>
PetscIntialize("file") -> PetscOptionsInsert(optfile,PETSC_FALSE) -><br>
PetscOptionsInsertFile(optfile,flg)<br>
<br>
Satish<br>
<br>
On Thu, 4 Jun 2009, John R. Cary wrote:<br>
<br>
> In the UEDGE tests we get<br>
><br>
> oxygen.cary$ grep PETSC */*.out | grep petscopt<br>
> setup/alloc-cxxpy.out:[0]PETSC ERROR: Unable to open Options File petscopt!<br>
> tokgeo_HffCnog_ss/tokHffCnog-cxxpy.out:[0]PETSC ERROR: Unable to open<br>
> Options File petscopt!<br>
> tokgeo_HmsCnog_ss/tokHmsCnog-cxxpy.out:[0]PETSC ERROR: Unable to open<br>
> Options File petscopt!<br>
> tokgeo_H/tokHsm-cxxpy.out:[0]PETSC ERROR: Unable to open Options File<br>
> petscopt!<br>
><br>
><br>
> Is this really an error? The code seems to run fine, but those error<br>
> messages would be disconcerting to a user.<br>
><br>
> John<br>
> _______________________________________________<br>
> Facets-devel mailing list<br>
> <a href="mailto:Facets-devel@ice.txcorp.com">Facets-devel@ice.txcorp.com</a><br>
> <a href="https://ice.txcorp.com/mailman/listinfo/facets-devel" target="_blank">https://ice.txcorp.com/mailman/listinfo/facets-devel</a><br>
><br>
<br>
</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>