[petsc-dev] PetscIntialize docs
Satish Balay
balay at mcs.anl.gov
Thu Sep 5 15:05:53 CDT 2013
On Thu, 5 Sep 2013, Mark F. Adams wrote:
>
> On Sep 5, 2013, at 3:39 PM, Satish Balay <balay at mcs.anl.gov> 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'.
> >
> 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.
PetscStrreplace() which presumably gets called whenever a PATH is
checked [for ex:user_opt_file] calls PetscGetHomeDirectory() [and a
bunch of other similar things]. But as long as these system calls
dont' SEGV - the code should run fine.
Satish
More information about the petsc-dev
mailing list