Combining FEniCS with Your Favorite Software in C, C++, Fortran, or MATLAB


105
views
0
10 weeks ago by
hsk  
File attached: compile.log (14.25 KB)

 

Hi,

I am trying to call c++ module in FEniCS (python) for that I am using this Combining FEniCS with Your Favorite Software in C, C++, Fortran, or MATLAB.

but module did not compile and it throws error: RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/hirshikesh/.instant/error/dolfin_compile_code_943438288abcd5d142e49dfa96d5c3789ce71166/compile.log'

any idea to resolve this issue.

Thanks & Regards
HSK
Community: FEniCS Project
What is the error you get in the 'compile.log' file?
Intuitively, my first guess would be it is a compatibility issue (the code you are referring to, is rather old)
written 10 weeks ago by Jakob Maljaars  
Thanks for the reply. I have attached compile.log file.

Thanks for the help.
written 10 weeks ago by hsk  
1
So the compiler encounters two errors in the header file:

- an improper forward-declaration of _element: reason might be that the boost-library header is not included. As an alternative to the boost::shared_ptr you can use std::shared_ptr
- no type 'UFCCell' is found. This makes sense since the type has been deprecated somewhere in 2013 (see https://bitbucket.org/fenics-project/dolfin/pull-requests/73/changes-for-ufc-cell-clean-up/diff). For more recent FEniCS versions use
#include <ufc.h>
// To load ufc-header

ufc::cell ufc_cell
// To define ufc cell​


Anyway, if I may give you an advise: just start with a simple HelloWorld-ish example to try and test interfacing cpp with python before jumping to more complicated stuff ;)
written 10 weeks ago by Jakob Maljaars  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »