about PETSC installation

Satish Balay balay at mcs.anl.gov
Sat Oct 21 23:30:55 CDT 2006


We don't require fortran. Hence the option to turn it
off. [--with-fc=0 --download-c-blas-lapack=1].

It appears that you want to use PETSc from C++ with Visual Studio
6.0. [i.e you should use --with-clanguage=cxx ]. In this case [of
Visual Studio] its best to avoid fortran compiler completely [Compaq
Fortran is the one that goes with VC6.0]

[i.e use f2cblas - not fblas - otherwise you'll have to use fortran
compiler as linker - even if you are compiling c++ code.]

Hence my previous sugestion below:

>>>>>>>>>>>>>
./config/configure.py --with-mpi-dir=/cygdrive/d/MPICH2 --with-cc='win32fe cl' --with-fc=0 --with-cxx='win32fe cl' --with-clanguage=cxx --download-c-blas-lapack=1 

Check installation instructions for additional info. If you encounter
further problems - send us the corresponding configure.log to the
address petsc-maint at mcs.anl.gov [not to the users list]
>>>>>>>>

Satish


On Sun, 22 Oct 2006, Yixun Liu wrote:

> Thanks.
> If I turn off Fortran, does PETSC work well? I think PETSC depends on Fortran because it use LAPACK.
> 
> Regards,
> 
> Yixun
>   ----- Original Message ----- 
>   From: Matthew Knepley 
>   To: petsc-users at mcs.anl.gov 
>   Sent: Sunday, October 22, 2006 9:54 AM
>   Subject: Re: about PETSC installation
> 
> 
>   On 10/21/06, Yixun Liu <yxliu at fudan.edu.cn> wrote:
>     Hi,
>     Thanks for your help.
> 
>     Firstly I want to know if the error is caused by no Fortran on my computer?
> 
>   Yes, you can turn of Fortran using --with-fc=0.
> 
>      Matt 
> 
> 
> 
>     BTW, could you tell me more about the configure option, which you suggest?
> 
>     Best regards,
> 
>     Yixun
> 
>     ----- Original Message -----
>     From: "Satish Balay" <balay at mcs.anl.gov >
>     To: "PETSC" <petsc-users at mcs.anl.gov>
>     Sent: Saturday, October 21, 2006 10:17 PM
>     Subject: Re: about PETSC installation
> 
> 
>     > On Sat, 21 Oct 2006, Yixun Liu wrote: 
>     >
>     >> Hi,
>     >> I install PETSC on WindowsXP, MS VC++6.0, Cygwin, Dell standard dual processors PC,
>     >> I do as the PETSc installation page says,
>     >>
>     >> $ ./config/configure.py --with-mpi-dir=d:/MPICH2 
>     >> However, the error is "the Fortran error! mpi_init() could not be located!"
>     >>
>     >> Then I try this,
>     >> $ ./config/configure.py --with-mpi-dir=d:/MPICH2 --with-cc=c++
>     >> The error is "Unknown Fortran name mangling" 
>     >
>     >
>     > You probabably want to do:
>     >
>     > ./config/configure.py --with-mpi-dir=/cygdrive/d/MPICH2 --with-cc='win32fe cl' --with-fc=0 --with-cxx='win32fe cl' --with-clanguage=cxx --download-c-blas-lapack=1 
>     >
>     > Check installation instructions for additional info. If you encounter
>     > further problems - send us the corresponding configure.log to the
>     > address petsc-maint at mcs.anl.gov [not to the users list]
>     >
>     > Satish
>     >
>     >>
>     >> Hope your help!
>     >>
>     >> Best regards,
>     >>
>     >> Yixun Liu
>     >>
>     >
> 
> 
> 
> 
> 
>   -- 
>   "Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness 
> 




More information about the petsc-users mailing list