> > 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). >
You can't put -skip_petscrc in the code specific file. The whole idea of -skip_petscrc is that it keeps the code from trying to open a file. The code opens the code specific file first, then command line args, then checks for -skip_petscrc. So you need to give NULL for the the "file" here and put -skip_petscrc on the command line, if I am reading the code correctly. > 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
