about option database

Matthew Knepley knepley at gmail.com
Tue Oct 24 21:31:19 CDT 2006


Options can be read from:

  1) The command line

  2) a ~/.petscrc file

  3) the PETSC_OPTIONS environment variable

   Matt

On 10/24/06, Yixun Liu <yxliu at fudan.edu.cn> wrote:
>
>  Hi,
>
> I am reading the source code of
> $PETSC_DIR\src\ksp\ksp\examples\tutorials\ex2.c. Some codes are,
> ...
>   PetscInitialize(&argc,&args,(char *)0,help);
>   ierr = PetscOptionsGetInt(PETSC_NULL,"-m",&m,PETSC_NULL);CHKERRQ(ierr);
> ...
> However, I cannot find the default option database file .petscrc in user
> home directory.
>
> Regards,
>
> Yixun
>
>


-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec
Guiness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20061024/ef057cd3/attachment.htm>


More information about the petsc-users mailing list