<div>Hi,</div>
<div> </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> </div>
<div>Similarly, can I reuse the blas/lapack compiled for the 1st built?</div>
<div> </div>
<div>What are the options?</div>
<div> </div>
<div>Thank you.<br><br> </div>
<div><span class="gmail_quote">On 5/4/07, <b class="gmail_sendername">Matthew Knepley</b> <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> 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 <<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I just compiled a shared version of PETSc. I realised that I've forgotten to<br>> add --download-hypre=1 in the configure. Hence I need to rebuilt the PETSc.
<br>> Initially I had used --download-mpich=1 to built the mpich.<br>><br>> Before the "make all test", I got:<br>><br>> ...<br>><br>> MPI:<br>> Includes:<br>> ['/nfs/lsftmp/g0306332/petsc-
2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include']<br>> Library:<br>> ['/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/lib/libmpich.a',<br>> ' libnsl.a', '
librt.a']<br>><br>> ...<br>><br>> I tried to "reuse" this library for the new built but it failed. It says<br>><br>> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
<br>> details):<br>> ---------------------------------------------------------------------------------------<br>> Shared libraries cannot be built using MPI provided.<br>> Either rebuild with --with-shared=0 or rebuild MPI with shared library
<br>> support<br>><br>> My option is<br>> --with-mpi-include=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include<br>> --with-mpi-lib=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-
1.0.4p1/atlas3/lib/libmpich.a<br>><br>> I also changed libmpich.a to libmpich.so but the same error occurs. Is there<br>> any way I can use the mpich which I built earlier.<br>><br>> 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>