<div>Hi,</div>
<div>&nbsp;</div>
<div>In that case, can I use the this mpich library for other builds of PETSc on the same system? For e.g., I have 2 builts, 1 with external solver like hypre, another without. Can I use the same mpich built for the 2nd PETSc after I had the 1st PETSc library compiled?
</div>
<div>&nbsp;</div>
<div>Similarly, can I reuse the blas/lapack compiled for the 1st built?</div>
<div>&nbsp;</div>
<div>What&nbsp;are the options?</div>
<div>&nbsp;</div>
<div>Thank you.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 5/4/07, <b class="gmail_sendername">Matthew Knepley</b> &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">When you rebuild, you use the same option, --download-mpich and it will do the<br>correct thing.<br><br>Matt
<br><br>On 5/4/07, Ben Tay &lt;<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I just compiled a shared version of PETSc. I realised that I&#39;ve forgotten to<br>&gt; add --download-hypre=1 in the configure. Hence I need to rebuilt the PETSc.
<br>&gt; Initially I had used --download-mpich=1 to built the mpich.<br>&gt;<br>&gt; Before the &quot;make all test&quot;, I got:<br>&gt;<br>&gt; ...<br>&gt;<br>&gt; MPI:<br>&gt;&nbsp;&nbsp; Includes:<br>&gt; [&#39;/nfs/lsftmp/g0306332/petsc-
2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include&#39;]<br>&gt;&nbsp;&nbsp; Library:<br>&gt; [&#39;/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/lib/libmpich.a&#39;,<br>&gt; &#39; libnsl.a&#39;, &#39;
librt.a&#39;]<br>&gt;<br>&gt; ...<br>&gt;<br>&gt; I tried to &quot;reuse&quot; this library for the new built but it failed. It says<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNABLE to CONFIGURE with GIVEN OPTIONS&nbsp;&nbsp;&nbsp;&nbsp;(see configure.log for
<br>&gt; details):<br>&gt; ---------------------------------------------------------------------------------------<br>&gt; Shared libraries cannot be built using MPI provided.<br>&gt; Either rebuild with --with-shared=0 or rebuild MPI with shared library
<br>&gt; support<br>&gt;<br>&gt; My option is<br>&gt; --with-mpi-include=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include<br>&gt; --with-mpi-lib=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-
1.0.4p1/atlas3/lib/libmpich.a<br>&gt;<br>&gt; I also changed libmpich.a to libmpich.so but the same error occurs. Is there<br>&gt; any way I can use the mpich which I built earlier.<br>&gt;<br>&gt; Thanks.<br><br><br>--<br>
The government saving money is like me spilling beer. It happens, but<br>never on purpose.<br><br></blockquote></div><br>