programmmatic access to commandline variables
Yaron Kretchmer
yaronkretchmer at gmail.com
Tue Aug 15 11:32:07 CDT 2006
Hi Satish
This would print out the options that were not used.
What I'm looking for is a way of accessing them inside the program (as in
going through an array of unused options or something similar)
Thanks
Yaron
On 8/15/06, Satish Balay <balay at mcs.anl.gov> wrote:
>
> On Tue, 15 Aug 2006, Yaron Kretchmer wrote:
>
> > Hi All
> > Is there a way of determining programatically which commandline options
> are
> > used/not used within petsc?
>
> You can run the code with the additional option '-options_left'
>
> or add the following line of code - after PetscInitialize()
>
> ierr = PetscOptionsSetValue("-options_left",PETSC_NULL);CHKERRQ(ierr);
>
> > Alternatively, is there a file which contains all legal commandline
> options?
> > If so, what is it and what is the format?
>
> The options are distributed all over the code. The best way to get
> them is to run the appliation code with '-help' option - and it prints
> all the relavent options to that code run.
>
> Satish
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20060815/0aed832d/attachment.htm>
More information about the petsc-users
mailing list