<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 27, 2010, at 6:22 PM, Jed Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tue, 27 Jul 2010 18:14:46 -0400, Xuan YU &lt;<a href="mailto:xxy113@psu.edu">xxy113@psu.edu</a>&gt; wrote:<br><blockquote type="cite"><blockquote type="cite">How are you linking PETSc? &nbsp;I wonder if you're linking a different &nbsp;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">build<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">than you just configured.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">my "PETSC_DIR &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= " is the same to that of makefile of ex4<br></blockquote><br>What about your PETSC_ARCH? &nbsp;</div></blockquote><div><br></div><div>PETSC_ARCH &nbsp; &nbsp; &nbsp;=linux-gnu-c-opt</div><div><br></div><br><blockquote type="cite"><div>Can you compare the link lines (what is<br>actually output to the terminal) from that example and from yours?<br><br></div></blockquote><div><br></div><div><div>example:&nbsp;/gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-debug/bin/mpicc -o ex4.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -g3 -I/gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-debug/include -I/gpfs/home/xxy113/soft/petsc-3.1-p2/include -I/gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-debug/include -D__INSDIR__=src/ts/examples/tutorials/ ex4.c</div><div><br></div><div>my: gcc -o f.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -O -I/gpfs/home/xxy113/soft/petsc-3.1-p2/linux-gnu-c-opt/include -I/gpfs/home/xxy113/soft/petsc-3.1-p2/include -I/gpfs/home/xxy113/soft/petsc-3.1-p2/include/mpiuni -D__INSDIR__=/work/petsc/ f.c</div><div><br></div><div><br></div></div><br><blockquote type="cite"><div>Jed<br><br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Xuan YU (<span class="Apple-style-span" style="font-family: arial; font-size: 16px; white-space: pre; ">俞烜<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; white-space: normal; ">)</span></span></div><div><a href="mailto:xxy113@psu.edu">xxy113@psu.edu</a></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br></body></html>