|
From: | lukshuntim |
Subject: | Re: fem-fenics 0.0.1 released |
Date: | Mon, 24 Feb 2014 23:04:15 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On Sunday, February 23, 2014 08:36 PM, Juan Pablo Carbajal wrote:
On Sun, Feb 23, 2014 at 9:18 AM, Marco Vassallo <address@hidden> wrote:The solutions seems to be to set the CPPFLAGS as follow export CPPFLAGS="-I/usr/include/eigen3 $(mpicxx -showme:compile)"Indeed this should solve the problem, just find where "Dense" is installed. Try locate Eigen/Dense in your terminal, you should add that path to CPPFLAGS as Marco explained. To see if mpi is properly installed you can run mpicxx -showme:compile in your terminal as well. If you get an error, then you need to install openmpi.
Thanks! It solved the dolfin.h not found problem. I also found out that setting CPPFLAGS to -I/usr/include/eigen3 alone is sufficient. In order to use the package, it has to be set before starting octave as well. Otherwise I still get "Eigen/Dense not found" when fem-fenics is run.
One more glitch is, for example, when trying the one of the femfenics_examples, octave exits and threw this error:
symbol lookup error: /usr/lib/openmpi/lib/openmpi /mca_paffinity_linux.so: undefined symbol: mca_base_param_reg_int
I searched a bit and found that it seems to be specific to openmpi only and quite common when openmpi is called from scripting languages. It's related to how openmpi loads its supporting libraries.
http://www.open-mpi.org/faq/?category=running#loading-libmpi-dynamicallyUnfortunately I'm not much of a developer to meddle in the code to implement the recommendation, though. :-(
A workaround is to preload it with something like export LD_PRELOAD=/usr/lib/openmpi/lib/libmpi.so before starting octave.Thanks again for making fenics available in octave. It's great now octave can interface with a full blown FEM code,
Regards, ST --
[Prev in Thread] | Current Thread | [Next in Thread] |