programmmatic access to commandline variables

Satish Balay balay at mcs.anl.gov
Tue Aug 15 11:14:08 CDT 2006


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




More information about the petsc-users mailing list