On Sun, Aug 9, 2009 at 5:55 PM, <span dir="ltr"><<a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a>></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: "Satish Balay" <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>><br>
To: "PETSc users list" <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><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't work [with the provided makefile] - you'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>
> 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>
><br>
> ld: cannot find -llapack<br>
> make: [ex2] Error 1 (ignored)<br>
><br>
> Please note that I was able to compile and run this example successfully before the an update was done on the system.<br>
><br>
> 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>
><br>
> Thank you<br>
> Irfan<br>
><br>
><br>
> ----- Original Message -----<br>
> From: "Matthew Knepley" <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>><br>
> To: "PETSc users list" <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
> Sent: Friday, August 7, 2009 7:37:06 PM GMT -05:00 US/Canada Eastern<br>
> Subject: Re: PETSC_LIB<br>
><br>
> The easiest way to link correctly is to use the PETSc makefile format:<br>
><br>
> prog: file1.o file2.o<br>
> ${CLINKER} -o prog file1.o file2.o ${PETSC_SNES_LIB}<br>
><br>
> Matt<br>
><br>
><br>
> On Fri, Aug 7, 2009 at 6:17 PM, < <a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a> > wrote:<br>
><br>
><br>
> Hi<br>
> 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>
><br>
> However my make file is not successfully linking anymore. The error message I get is as follows.<br>
><br>
> ld: cannot find -llapack<br>
> make: *** [te] Error 1<br>
><br>
> I see that the blaslapack package is not available under "externalpackages" 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>
><br>
> How can I resolve this link error? Kindly suggest.<br>
><br>
><br>
> Thank you<br>
> Irfan<br>
><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>