<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You are right.<div><br></div><div>Here is what I got</div><div><br></div><div><br></div><div><div><font class="Apple-style-span" color="#FE2617">timac> make getincludedirs getlinklibs</font></div><div><font class="Apple-style-span" color="#223CFB">-I/Data/Poub1/petsc-3.1-p5/macx/include -I/Data/Poub1/petsc-3.1-p5/include -I/Data/Poub1/petsc-3.1-p5/macx/include</font></div><div><font class="Apple-style-span" color="#223CFB">-L/Data/Poub1/petsc-3.1-p5/macx/lib -L/Data/Poub1/petsc-3.1-p5/macx/lib -L/Data/Poub1/petsc-3.1-p5/macx/lib -lpetsc -L/usr/X11R6/lib -lX11 -L/Data/Poub1/petsc-3.1-p5/macx/lib -lparmetis -lmetis -lflapack -lfblas -L/Data/Poub1/petsc-3.1-p5/macx/lib -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin10/4.2.1 -L/opt/intel/Compiler/11.1/088/lib -L/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -ldl -lpmpich -lmpich -lSystem -lmpichf90 -lifport -lifcore -limf -lsvml -lipgo -lgcc_s.10.5 -lSystemStubs -lmx -lirc -lpthread -ldl -lpmpich -lmpich -lSystem -ldl</font></div><div><br></div><div><br></div><div>What does it mean please for me to change in my makefiles ?</div><div><br></div><div>Do you mean that I should remove any link other than -lpetsc ?</div><div><br></div><div>Great thanks</div><div><br></div><div>Tahar</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><div>Le 12 nov. 2010 à 18:26, Satish Balay a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Looks like you are not using PETSc makefiles - and upgrading from<br>older release to petsc-3.1<br><br>Currently there is only one library for petsc [-lpetsc]<br><br>Check:<br>cd $PETSC_DIR<br>make getincludedirs getlinklibs<br><br>Satish<br><br>On Fri, 12 Nov 2010, Tahar Amari wrote:<br><br><blockquote type="cite">Many thanks. This is solved.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Now at link I have the library not found. Any idea ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> -L/usr/local/petsc/macx/lib -lpetscsnes -lpetscvec -lpetscmat -lpetsccontrib -lpetscts -lpetscdm -lpetscksp -lpetsc -lmpich -lpmpich -lfmpich -lmpichf90 -lparmetis -lmetis -lfblas -lflapack<br></blockquote><blockquote type="cite">ld: library not found for -lpetscsnes<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tahar<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Le 12 nov. 2010 à 18:17, Satish Balay a écrit :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Looks like this is related to the following:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/31.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/31.html</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"># petsc.h and petscdef.h are replaced with petscsys.h and petscsysdef.h; while petsc.h now includes ALL PETSc include files.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Try removing all includes other than 'petsc.h' from your code.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Satish<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Fri, 12 Nov 2010, Tahar Amari wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hello,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">While compiling one of my code with ifort , I have the following error pointing <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">towards petscvec.h .<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Any idea about this posssible kind of error please ? Any option of ifort to use ?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Many thanks<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Tahar<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/usr/local/petsc//include/finclude/petscvec.h(10): error #6418: This name has already been assigned a data type. [NORM_1]<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> integer(kind=selected_int_kind(5)) NORM_1<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">--------------------------------------------<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">T. Amari<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Centre de Physique Theorique<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Ecole Polytechnique<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">91128 Palaiseau Cedex France<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">tel : 33 1 69 33 42 52<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">fax: 33 1 69 33 49 49<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">email: <<a href="mailto:amari@cpht.polytechnique.fr">mailto:amari@cpht.polytechnique.fr</a>><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">URL : <a href="http://www.cpht.polytechnique.fr/cpht/amari">http://www.cpht.polytechnique.fr/cpht/amari</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--------------------------------------------<br></blockquote><blockquote type="cite">T. Amari<br></blockquote><blockquote type="cite">Centre de Physique Theorique<br></blockquote><blockquote type="cite">Ecole Polytechnique<br></blockquote><blockquote type="cite">91128 Palaiseau Cedex France<br></blockquote><blockquote type="cite">tel : 33 1 69 33 42 52<br></blockquote><blockquote type="cite">fax: 33 1 69 33 49 49<br></blockquote><blockquote type="cite">email: <<a href="mailto:amari@cpht.polytechnique.fr">mailto:amari@cpht.polytechnique.fr</a>><br></blockquote><blockquote type="cite">URL : <a href="http://www.cpht.polytechnique.fr/cpht/amari">http://www.cpht.polytechnique.fr/cpht/amari</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>--------------------------------------------</div><div>T. Amari</div><div>Centre de Physique Theorique</div><div>Ecole Polytechnique</div><div>91128 Palaiseau Cedex France</div><div>tel : 33 1 69 33 42 52</div><div>fax: 33 1 69 33 49 49</div><div>email: <<a href="mailto:amari@cpht.polytechnique.fr">mailto:amari@cpht.polytechnique.fr</a>></div><div>URL : <a href="http://www.cpht.polytechnique.fr/cpht/amari">http://www.cpht.polytechnique.fr/cpht/amari</a></div><div><br></div></span></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>