![]() ![]() ![]() ![]() Next: Conventions and Restrictions Up: Function aliasing Previous: Using an Aliased Function Contents Providing a FunctionTo provide an aliased function you must again add the prototype to your interface.ccl file. A statement containing the name of the providing function and the language it is provided in, must also be given. For example, CCTK_REAL FUNCTION SumStuff(CCTK_REAL IN x, CCTK_REAL IN y) PROVIDES FUNCTION SumStuff WITH AddItUp LANGUAGE CThe appropriate function must then be provided somewhere in this thorn. Multiple thorns providing the same function can be compiled into the same configuration; however, only one providing thorn may be activated at runtime, otherwise, an error message is printed and the run is aborted. It is necessary to specify the language of the providing function; no default will be assumed.
|