YPCC / mfem

Automatically exported from code.google.com/p/mfem
GNU Lesser General Public License v2.1
0 stars 0 forks source link

building library for using LAPACK #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I need to use methods for DenseMatrix Class, then I have to build (serial) 
library by compiling with LAPACK.

I defined the variable USE_LAPACK       = YES in the makefile, but this setting 
was ignored by the compiler, indeed I see the following compilation line when I 
run make:
cd linalg; g++ -O3  -DMFEM_USE_MEMALLOC      -c densemat.cpp

Finally, my code using DenseMatrixEigensystem doesn't work, and the following 
message is obtained:

DenseMatrixEigensystem::Eval(): Compiled without LAPACK

Could you help me?
Thanks a lot, Pasqua D'Ambra

Original issue reported on code.google.com by pasqua.d...@gmail.com on 27 Jan 2014 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago
Dear Pasqua,

In the MFEM root directory there are two makefiles:
*GNUmakefile* and *makefile*

Depending on the version of *make* you have installed on your machine only one 
of the two files will be read.

In your case, it seems you are using the GNU version of make and therefore you 
should modify *GNUmakefile*, and not *makefile*

To use LAPACK you will need to perform two steps:

1) In *GNUmakefile* line 36:
- change the value of the variable USE_LAPACK to YES
2) In *examples/makefile* lines 39 -- 43:
- Set the variable USE_LAPACK = YES
- insert the correct path to your blas and lapack libraries.

Please let us know if you encounter additional problems

Original comment by umberto....@gmail.com on 27 Jan 2014 at 3:59