<br><br><div class="gmail_quote">On Sat, Jun 25, 2011 at 9:07 AM, Yi Mei <span dir="ltr">&lt;<a href="mailto:njumeiyi@gmail.com">njumeiyi@gmail.com</a>&gt;</span> wrote<span class="Apple-style-span" style="font-size: large; ">Hi,</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><font size="4"><br></font></div><div><font size="4">I am new to petsc. </font></div><div><font size="4"><br>
</font></div><div><font size="4">I downloaded the latest version of petsc, and followed the installation guide, did the following:</font></div></blockquote><div><br></div><div>You can ignore these warnings. The Fortran example ran correctly. These will be fixed in the next release.</div>
<div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium">cd petsc-3.1-p8/</span></div>

<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><font color="#ff0000">PETSC_DIR=$PWD; export PETSC_DIR</font></span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><font color="#ff0000">./config/configure.py</font></span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"> </span><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium">--with-cc=gcc --with-fc=gfortran --download-f-blas-lapack=1 --download-mpich=1</span></div>

<div><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium">make </span><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium">all</span></div>
<div><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium">make test</span></div>
<div><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium"><br></span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Then I got the following error and warning message:</span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></span></div><div><div><font face="&#39;Times New Roman&#39;" size="3"><span>--------------Error detected during compile or link!-----------------------</span></font></div>

<div><font face="&#39;Times New Roman&#39;" size="3"><span>See <a href="http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html</a></span></font></div>

<div><font face="&#39;Times New Roman&#39;" size="3"><span>/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/bin/mpif90 -c  -Wall -Wno-unused-variable -g  -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/include -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include   -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include    -o ex5f.o ex5f.F</span></font></div>

<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:92.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call PetscOptionsGetReal(PETSC_NULL_CHARACTER,&#39;-par&#39;,lambda,      </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:113.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call DACreate2d(PETSC_COMM_WORLD,DA_NONPERIODIC,DA_STENCIL_STAR,  </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:114.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>     &amp;     i4,i4,PETSC_DECIDE,PETSC_DECIDE,i1,i1,PETSC_NULL_INTEGER,    </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:125.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call DAGetInfo(da,PETSC_NULL_INTEGER,mx,my,PETSC_NULL_INTEGER,    </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:126.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>     &amp;               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,             </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:127.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>     &amp;               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,             </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:128.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>     &amp;               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,             </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:130.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call DAGetCorners(da,xs,ys,PETSC_NULL_INTEGER,xm,ym,              </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:132.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call DAGetGhostCorners(da,gxs,gys,PETSC_NULL_INTEGER,gxm,gym,     </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:188.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>      call SNESSetJacobian(snes,A,J,SNESDAComputeJacobian,              </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:344.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>            if (i .eq. 1 .or. j .eq. 1                                  </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:348.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>              x(i,j) = temp1 *                                          </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:412.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>            if (i .eq. 1 .or. j .eq. 1                                  </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:417.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>               uxx = hydhx * (two*u                                     </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:517.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>            if (i .eq. 1 .or. j .eq. 1                                  </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:522.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>               call MatSetValuesLocal(jac,i1,row,i1,col,v,              </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:528.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>               v(3) = two*(hydhx + hxdhy)                               </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>ex5f.F:537.72:</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span>               call MatSetValuesLocal(jac,i1,row,i5,col,v,              </span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>                                                                        1</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Warning: Line truncated at (1)</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/bin/mpif90 -Wall -Wno-unused-variable -g  -o ex5f ex5f.o -Wl,-rpath,/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -lpetsc  -lX11 -Wl,-rpath,/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -lflapack -lfblas -lnsl -lrt -lm -L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu -ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -lgfortran -lm -lm -ldl -lmpich -lpthread -lrt -lgcc_s -ldl </span></font></div>

<div><font face="&#39;Times New Roman&#39;" size="3"><span>/bin/rm -f ex5f.o</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span>Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div><font face="&#39;Times New Roman&#39;" size="4"><span>Could you please help me figure out what I did wrong during the installation of this package?</span></font></div>

<div><font face="&#39;Times New Roman&#39;" size="4"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="4"><span>Thank you so much!</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="4"><span><br></span></font></div><div>
<font face="&#39;Times New Roman&#39;" size="4"><span>Best</span></font></div><div><font face="&#39;Times New Roman&#39;" size="4"><span>Yi</span></font></div>
<div><font face="&#39;Times New Roman&#39;" size="3"><span><br></span></font></div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">
<br></div></div><div><span style="color:rgb(255, 0, 0);font-family:&#39;Times New Roman&#39;;font-size:medium"><br>
</span></div>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>