<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi everyone,</p>
<p>I am in a situation where I want to call a function whose
argument is just CCTK_ARGUMENTS from another thorn. I am aware of
the following:</p>
<p>-- I can share functions defined between thorns through the
interface.ccl of the thorns, but I do not know how to specify
CCTK_ARGUMENTS in the interface file. I cannot seem to find the
cctk_arguments.h header anywhere in the Cactus directory to see
what the definition of this is?<br>
</p>
<p>-- I can call functions with argument CCTK_ARGUMENTS within the
same thorn by using CCTK_PASS_CTOC.</p>
<p>As a current fix (copied from CTGamma code), I can write the
function like</p>
<p>void test(CCTK_POINTER_TO_CONST _cctkGH)<br>
{<br>
const cGH* const cctkGH = _cctkGH; <br>
DECLARE_CCTK_ARGUMENTS;<br>
DECLARE_CCTK_PARAMETERS;<br>
<br>
}<br>
</p>
<p>where this argument can now be passed through the interface file
and seems to do a similar thing to CCTK_ARGUMENTS.</p>
<p>Any help to figure out the best way to do this would be much
appreciated!</p>
<p>Thanks,</p>
<p>Chris<br>
</p>
<div class="moz-signature">-- <br>
<font color="#666666" size="-1" face="Cantarell">Dr Chris Stevens<br>
<br>
Claude Leon Postdoctoral Fellow<br>
</font>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature"> <font color="#666666" size="-1"
face="Cantarell"> </font>
<p><font color="#666666" size="-1" face="Cantarell">Department
of Mathematics</font></p>
<font color="#666666" size="-1" face="Cantarell"> </font>
<p><font color="#666666" size="-1" face="Cantarell">Rhodes
University</font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell">Room 5</font></font></font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell"> Ph: +27 46 603 8932</font></font></font></p>
<p><font color="#666666"><font size="-1"><font
face="Cantarell">Web: <a moz-do-not-send="true"
href="http://www.chrisdoesmaths.com">www.chrisdoesmaths.com</a></font></font></font></p>
</div>
</div>
</div>
</div>
</body>
</html>