On Sun, Aug 9, 2009 at 5:55 PM,  <span dir="ltr">&lt;<a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for the helpful suggestions. Suppose blas/lapack are already installed on the cluster, what needs to be done in order for petsc to recognise them without having to reconfigure and reinstall.<br><div class="im"></div>
</blockquote><div><br>Nothing. That is exactly why we have a configure.<br><br>  Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
Thank you<br>
Irfan<br>
<br>
----- Original Message -----<br>
</div><div class="im">From: &quot;Satish Balay&quot; &lt;<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>&gt;<br>
To: &quot;PETSc users list&quot; &lt;<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>&gt;<br>
</div><div><div></div><div class="h5">Sent: Sunday, August 9, 2009 6:36:42 PM GMT -05:00 US/Canada Eastern<br>
Subject: Re: PETSC_LIB<br>
<br>
If the examples don&#39;t work [with the provided makefile] - you&#39;ll have<br>
to check with the person who built this petsc for you..<br>
<br>
Perhaps he needs to reinstall petsc - or just install blas/lapack for<br>
this to work..<br>
<br>
Satish<br>
<br>
On Sun, 9 Aug 2009, <a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a> wrote:<br>
<br>
&gt; Thank for your reply Matt. I have tried to compile the src/dm/ao/examples/tutorials/ex2.c using the makefile provided in same directory. However I received the same error, i.e.<br>
&gt;<br>
&gt; ld: cannot find -llapack<br>
&gt; make: [ex2] Error 1 (ignored)<br>
&gt;<br>
&gt; Please note that I was able to compile and run this example successfully before the an update was done on the system.<br>
&gt;<br>
&gt; I wanted to get some idea as to the cause of this link error. This way I have something to ask the team at Purdue to look into.<br>
&gt;<br>
&gt; Thank you<br>
&gt; Irfan<br>
&gt;<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; From: &quot;Matthew Knepley&quot; &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;<br>
&gt; To: &quot;PETSc users list&quot; &lt;<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>&gt;<br>
&gt; Sent: Friday, August 7, 2009 7:37:06 PM GMT -05:00 US/Canada Eastern<br>
&gt; Subject: Re: PETSC_LIB<br>
&gt;<br>
&gt; The easiest way to link correctly is to use the PETSc makefile format:<br>
&gt;<br>
&gt; prog: file1.o file2.o<br>
&gt; ${CLINKER} -o prog file1.o file2.o ${PETSC_SNES_LIB}<br>
&gt;<br>
&gt; Matt<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Aug 7, 2009 at 6:17 PM, &lt; <a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Hi<br>
&gt; I have been compiling and running my Petsc code on a TERAGRID cluster (Steele - Purdue) for sometime now. Recently they made changes to their operating system and also installed a clean version of Petsc (it now makes use of MPICH-2 instead of MPICH).<br>

&gt;<br>
&gt; However my make file is not successfully linking anymore. The error message I get is as follows.<br>
&gt;<br>
&gt; ld: cannot find -llapack<br>
&gt; make: *** [te] Error 1<br>
&gt;<br>
&gt; I see that the blaslapack package is not available under &quot;externalpackages&quot; directory. I presume the link error is because the lapack library is included in the PETSC_LIB command and this library may not have been installed during PETSc installation. I say this because the make file works fine on my laptop where I have installed blas-lapack during PETSc installation. Please correct me if I am wrong.<br>

&gt;<br>
&gt; How can I resolve this link error? Kindly suggest.<br>
&gt;<br>
&gt;<br>
&gt; Thank you<br>
&gt; Irfan<br>
&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">PhD Candidate<br>
G.W. Woodruff School of Mechanical Engineering<br>
Georgia Institute of Technology<br>
Atlanta, GA (30332)<br>
</div></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>