Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building library for using LAPACK #9

Closed
GoogleCodeExporter opened this issue Jun 11, 2015 · 1 comment
Closed

Building library for using LAPACK #9

GoogleCodeExporter opened this issue Jun 11, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants