[petsc-users] Compile Errors with ifort 11.1

Satish Balay balay at mcs.anl.gov
Fri Nov 12 11:17:38 CST 2010


Looks like this is related to the following:
http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/31.html
# petsc.h and petscdef.h are replaced with petscsys.h and petscsysdef.h; while petsc.h now includes ALL PETSc include files.

Try removing all includes other than 'petsc.h' from your code.

Satish

On Fri, 12 Nov 2010, Tahar Amari wrote:

> Hello,
> 
> While compiling one of my code with ifort , I have the following error pointing 
> towards petscvec.h .
> 
> Any idea about this posssible kind of error please ? Any option of ifort to use ?
> 
> Many thanks
> 
> Tahar
> 
> 
> ifort -assume byterecl  -I/usr/local/petsc/ -I/usr/local/petsc//include -I/usr/local/petsc//include/finclude -I/usr/local/petsc//macx/include -I/usr/X11R6/include/X11 -DPETSC_HAVE_PARMETIS -DPETSC_USE_DEBUG -DPETSC_USE_LOG -DPETSC_USE_BOPT_g -DPETSC_USE_STACK -DPETSC_AVOID_MPIF_H -c petsc.fpp
> /usr/local/petsc//include/finclude/petscvec.h(10): error #6418: This name has already been assigned a data type.   [NORM_1]
>       integer(kind=selected_int_kind(5)) NORM_1
> 
> 
> 
> --------------------------------------------
> T. Amari
> Centre de Physique Theorique
> Ecole Polytechnique
> 91128 Palaiseau Cedex France
> tel : 33 1 69 33 42 52
> fax: 33 1 69 33 49 49
> email: <mailto:amari at cpht.polytechnique.fr>
> URL : http://www.cpht.polytechnique.fr/cpht/amari
> 
> 
> 
> 
> 



More information about the petsc-users mailing list