Able to use umfpack in debug configuration, but not in release configuration

23 views
Skip to first unread message

Lucas Myers

unread,
Jul 21, 2021, 4:57:12 PM7/21/21
to deal.II User Group
Hi all,

I've used the #include <deal.II/lac/sparse_direct.h> command in a program in order to use UMFPack. I'm able to compile and run everything fine in Debug mode (provided by Eclipse via the cmake4eclipse add-on). However, when I try to switch to Release mode to optimize the program, it gives me the following warning:

/usr/local/include/deal.II/lac/sparse_direct.h:31:12: fatal error: umfpack.h: No such file or directory
 #  include <umfpack.h>
            ^~~~~~~~~~~

This is confusing to me because, given that I can use UMFPack in Debug mode, I must've installed it properly during the dealii installation.

Let me know if you have any tips on how to fix, or if you need more information.

Thanks so much for any help,
Lucas

Lucas Myers

unread,
Jul 21, 2021, 5:23:46 PM7/21/21
to deal.II User Group
Hi folks,

Excuse me, the problem was on my end -- when using cmake4eclipse, you have to specify that you want to use the "CMAKE_EXPORT_COMPILE_COMMANDS parser" as the provider in the "Preprocessor Includes, Paths, Macros, etc." tab for your project for both the Release and Debug configurations.

Given that the problem was a silly mistake on my end, ought I delete the forum post?

Thanks,
Lucas

Jean-Paul Pelteret

unread,
Aug 4, 2021, 2:21:23 AM8/4/21
to dea...@googlegroups.com
Hi Lucas,

I’m glad that you managed to solve this issue yourself.

Given that the problem was a silly mistake on my end, ought I delete the forum post?

Given that you’ve explained what you did to fix the problem, this is useful information for all. So we’ll leave the thread in place just in case someone has a similar issue in the future.

Best,
Jean-Paul

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/da868037-2256-43ab-953d-99e8eff30cbcn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages