[Developers] [Patches] Optional capabilities

Ian Hinder ian.hinder at aei.mpg.de
Thu Dec 9 02:24:44 CST 2010


On 3 Dec 2010, at 18:03, Ian Hinder wrote:

> Improve optional requirement of capabilities
> 
> Thorns can specify that they can make use of a particular capability (for example HDF5), but that it is not absolutely required.  It is currently not possible to detect a capability in the source code or make system  of a thorn because there is no preprocessor macro and no make variable defined to indicate that the capability is available.  Additionally, the preprocessor definitions which are explicitly provided by a capability are written to an include file which is malformed and hence these definitions cannot be read. This commit:
> 
> * Introduces makefile and preprocessor variables HAVE_CAPABILITY_<cap> for each provided capability
> 
> * Removes the incorrect definition line causing the include file to be malformed
> 
> * Renames cctki_Capabilities.h to cctk_Capabilities.h and causes cctk_Capabilities.h to be included from cctk.h by all thorns
> 
> * Excludes cctk_Capabilities.h from dependency checking (dependencies of the files included from this one will be sufficient)

Please can somebody look at this and apply it if it is OK.  I have code which depends on this which I want to commit to the Einstein Toolkit.

-- 
Ian Hinder
ian.hinder at aei.mpg.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cactuscode.org/pipermail/developers/attachments/20101209/4b285f84/attachment.html 


More information about the Developers mailing list