DOLFIN Uses CppHeaderParser

Posted by: senex 12 years, 3 months ago

(Comments)

The latest version of DOLFIN now uses CppHeaderParser.  DOLFIN is a C++/Python library that functions as the main user interface of FEniCS (More here on dolfin).  FEniCS is a collection of free software with an extensive list of features for automated, efficient solution of differential equations.

CppHeaderParser is used in the module that JITs code.  CppHeaderParser will parse the header files, from there SWIG code will be generated then compiled.  This allows Python to call native C++ code without manually generating intermediary bridge code as is traditionally required by SWIG. 

Thanks to Johan Hake for helping me find bugs and test improvements to CppHeaderParser.

CppHeaderParser can be found in action in compile_extension_module(...) found in /site-packages/dolfin/compilemodules/compilemodule.py which calls parse_and_extract_type_info(code) found in /site-packages/dolfin_utils/cppparser/utils.py

Currently unrated


Comments

Recent Posts

Archive

2016
2014
2013
2012
2011
2006

Categories

Authors

Feeds

RSS / Atom

Menu