MPICH error when using petsc-3.0.0-p4
Wee-Beng TAY
zonexo at gmail.com
Thu Apr 9 02:51:13 CDT 2009
Hi,
I just built petsc-3.0.0-p4 with mpich and after that, I reinstalled my
windows xp and installed mpich in the same directory. I'm using CVF
Now, I found that when I'm trying to compile my code, I got the error:
:\cygwin\codes\MPICH\SDK\include\mpif.h(105) : Error: The attributes of
this name conflict with those made accessible by a USE statement.
[MPI_STATUS_SIZE]
INTEGER MPI_STATUS_IGNORE(MPI_STATUS_SIZE)
--------------------------------^
E:\cygwin\codes\MPICH\SDK\include\mpif.h(106) : Error: The attributes of
this name conflict with those made accessible by a USE statement.
[MPI_STATUS_SIZE]
INTEGER MPI_STATUSES_IGNORE(MPI_STATUS_SIZE)
----------------------------------^
E:\cygwin\codes\petsc-3.0.0-p4\include/finclude/petsc.h(154) : Error:
The attributes of this name conflict with those made accessible by a USE
statement. [MPI_DOUBLE_PRECISION]
parameter(MPIU_SCALAR = MPI_DOUBLE_PRECISION)
------------------------------^
Error executing df.exe.
flux_area.obj - 3 error(s), 0 warning(s)
My include option is :
Debug/;$(PETSC_DIR);$(PETSC_DIR)\$(PETSC_ARCH)\;$(PETSC_DIR)\$(PETSC_ARCH)\include;$(PETSC_DIR)\include;E:\cygwin\codes\MPICH\SDK\include
Interestingly, when I change my PETSC_DIR to petsc-dev, which correspond
to an old build of petsc-2.3.3-p13, there is no problem.
May I know what's wrong? Btw, I've converted my mpif.h from using "C" as
comments to "!".
Thank you very much and have a nice day!
Yours sincerely,
Wee-Beng Tay
>>
More information about the petsc-users
mailing list