Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Jed Brown
"Mark F. Adams" writes: > Ah yes, I was being simplistic and trying to avoid all rc files. So > all we need to do is add -skip_petsrc to the the user specified file, > or the command line, and this will avoid trying to get the home > directory. Or use 'next' or 'jed/avoid-getpwuid', which never

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Mark F. Adams wrote: > > On Sep 5, 2013, at 3:29 PM, Satish Balay wrote: > > > On Thu, 5 Sep 2013, Mark F. Adams wrote: > > > >> > >> On Sep 5, 2013, at 12:46 PM, Satish Balay wrote: > >> > >>> On Thu, 5 Sep 2013, Satish Balay wrote: > >>> > On Thu, 5 Sep 2013, Mar

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
On Sep 5, 2013, at 3:39 PM, Satish Balay wrote: > On Thu, 5 Sep 2013, Mark F. Adams wrote: > >> >> On Sep 5, 2013, at 3:29 PM, Satish Balay wrote: >> >>> On Thu, 5 Sep 2013, Mark F. Adams wrote: >>> On Sep 5, 2013, at 12:46 PM, Satish Balay wrote: > On Thu, 5 Sep 2013,

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Mark F. Adams wrote: > > On Sep 5, 2013, at 3:39 PM, Satish Balay wrote: > > > Just to clarify - the buggy 'getpwuid(getuid())' on bgq induced a > > deadlock in MPI messaging - which -skip_petscrc avoids. That doesn't > > imply 'avoid loading all petscopt/usropt files'. > >

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Matthew Knepley
On Thu, Sep 5, 2013 at 3:18 PM, Satish Balay wrote: > On Thu, 5 Sep 2013, Mark F. Adams wrote: > > > > > On Sep 5, 2013, at 12:39 PM, Matthew Knepley wrote: > > > > > On Thu, Sep 5, 2013 at 11:35 AM, Mark F. Adams > wrote: > > > > > > On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > > > >

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Mark F. Adams wrote: > > On Sep 5, 2013, at 12:39 PM, Matthew Knepley wrote: > > > On Thu, Sep 5, 2013 at 11:35 AM, Mark F. Adams wrote: > > > > On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > > > >> On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams wrote: > >> In > >

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
On Sep 5, 2013, at 12:39 PM, Matthew Knepley wrote: > On Thu, Sep 5, 2013 at 11:35 AM, Mark F. Adams wrote: > > On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > >> On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams wrote: >> In >> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
On Sep 5, 2013, at 12:46 PM, Satish Balay wrote: > On Thu, 5 Sep 2013, Satish Balay wrote: > >> On Thu, 5 Sep 2013, Mark F. Adams wrote: > >>> I wanted to not have files get checked and added -skip_petscrc to >>> the command line but this was not sufficient. I needed to change >>> the code to

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
On Sep 5, 2013, at 3:29 PM, Satish Balay wrote: > On Thu, 5 Sep 2013, Mark F. Adams wrote: > >> >> On Sep 5, 2013, at 12:46 PM, Satish Balay wrote: >> >>> On Thu, 5 Sep 2013, Satish Balay wrote: >>> On Thu, 5 Sep 2013, Mark F. Adams wrote: >>> > I wanted to not have files get chec

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Mark F. Adams wrote: > > On Sep 5, 2013, at 12:46 PM, Satish Balay wrote: > > > On Thu, 5 Sep 2013, Satish Balay wrote: > > > >> On Thu, 5 Sep 2013, Mark F. Adams wrote: > > > >>> I wanted to not have files get checked and added -skip_petscrc to > >>> the command line but

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Satish Balay wrote: > On Thu, 5 Sep 2013, Mark F. Adams wrote: > > I wanted to not have files get checked and added -skip_petscrc to > > the command line but this was not sufficient. I needed to change > > the code to use NULL (or I told my user to do so). Was 'useroptfile'

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Mark F. Adams wrote: > > On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > > > On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams wrote: > > In > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.html > > I see: > > > > file- [option

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Matthew Knepley
On Thu, Sep 5, 2013 at 11:35 AM, Mark F. Adams wrote: > > On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > > On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams wrote: > >> In >> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.htmlI >> see: >> >> *file*- [optional

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
On Sep 5, 2013, at 6:16 AM, Matthew Knepley wrote: > On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams wrote: > In > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.html > I see: > > file - [optional] PETSc database file, also checks ~username/.petscrc and > .pe

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Satish Balay
On Thu, 5 Sep 2013, Matthew Knepley wrote: > On Thu, Sep 5, 2013 at 9:44 AM, Mark F. Adams wrote: > > > > > > > 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

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Matthew Knepley
On Thu, Sep 5, 2013 at 9:44 AM, Mark F. Adams wrote: > > > > 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 PetscI

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Mark F. Adams
> > 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_pet

Re: [petsc-dev] PetscIntialize docs

2013-09-05 Thread Matthew Knepley
On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams 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 > -

[petsc-dev] PetscIntialize docs

2013-09-04 Thread Mark F. Adams
In http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.html I 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 fi