I am sorry.

I want to build it on windows. I forgot to mention that. On windows I will
not be having "configure.py" script.

Regards,
Sumit

-----Original Message-----
From: owner-petsc-users at mcs.anl.gov [mailto:[email protected]]
On Behalf Of Satish Balay
Sent: Thursday, July 19, 2007 8:12 PM
To: petsc-users at mcs.anl.gov
Subject: Re: PETSc compiler

On Thu, 19 Jul 2007, Sumit Vaidya wrote:

> Where is the option to change the compiler?
> 
> I saw $PCC in the bmake/common/variables file. Now I want to change the
> compiler.
> 
>  
> 
> Where should I specify it?

The correct thing to do here is specify the compilers to configure.

./config/configure.py --with-cc=gcc --with-fc=g77 --download-mpich=1
--download-f-blas-lapack=1

If you need to use PETSc from different compilers [or other variation
in options] create multiple installs of PETSc with different values of
PETSC_ARCH

./config/configure.py --with-cc=gcc PETSC_ARCH=linux-gcc
make  PETSC_ARCH=linux-gcc
./config/configure.py --with-cc=icc PETSC_ARCH=linux-icc
make PETSC_ARCH=linux-icc

etc..

Satish


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.


Reply via email to