Many thanks. This is solved. Now at link I have the library not found. Any idea ? -L/usr/local/petsc/macx/lib -lpetscsnes -lpetscvec -lpetscmat -lpetsccontrib -lpetscts -lpetscdm -lpetscksp -lpetsc -lmpich -lpmpich -lfmpich -lmpichf90 -lparmetis -lmetis -lfblas -lflapack ld: library not found for -lpetscsnes Tahar Le 12 nov. 2010 à 18:17, Satish Balay a écrit :
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:[email protected]> URL : http://www.cpht.polytechnique.fr/cpht/amari
-------------------------------------------- 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:[email protected]> URL : http://www.cpht.polytechnique.fr/cpht/amari