Satish,
 
I tried both ways that you suggested in Win-7 (and I tried to put the petscrc 
file in either the directory of executable or the directory where I run the 
executable), but it did not work. Note that I have to use file name "petscrc" 
instead of ".petscrc" since Windows does not allow the file name start with "."
 
The content of the file is very simple:
-pc_type jacobi




On Wednesday, December 11, 2013 1:26 PM, Qin Lu <[email protected]> wrote:
  
Thanks, Satish!
 
Qin



On Wednesday, December 11, 2013 12:27 PM, Satish Balay <[email protected]> 
wrote:
  
On Wed, 11 Dec 2013, Qin Lu wrote:


> Hello,
>  
> PETSc can read options from .petscrc file at home
 directory in Linux. Can it do the same thing in Windows? What is the file name 
and where the file should be placed?

On windows - one can emulate this by setting "HOME" env variable to the 
location where you have .petscrc

Also one can have .petscrc [or petscrc] in the location from which you run the 
petsc executable.

Satish

    

   Any suggestion?

Thanks,
Qin 

Reply via email to