[petsc-dev] PetscIntialize docs

Matthew Knepley knepley at gmail.com
Thu Sep 5 05:16:17 CDT 2013


On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams <mfadams at lbl.gov> wrote:

> In
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.htmlI see:
>
> *file*- [optional] PETSc database file, also checks ~username/.petscrc
> and .petscrc use NULL to not check for code specific file. Use
> -skip_petscrc in the code specific file to skip the .petscrc files
> I don't understand what "Use -skip_petscrc in the code specific file"
> means.  In looking at the code it seems like this line should read
> something like:
>
> … If you do not want to use a resource file, use NULL and
> add -skip_petscrc to the command line.
>

Here is what it is trying to say. There are three files we can check:

 1) ~username/.petscrc
 2) cwd/.petscrc
 3) "code specific file", whose name is passed into PetscIntitialize()

If you pass in NULL to PetscInitialize(), it will not check option 3). If
you pass in a real name to PetscIntiialize(), and
in the "code specific file" you put -skpi_petscrc, then it will not check
options 1) and 2).

    Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130905/ec41ee33/attachment.html>


More information about the petsc-dev mailing list