<html>#2571: runtime failure due to useing character*8 in DECLARE_CCTK_ARGUMENTS_CHECKED macro
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>

<p>Comment (by Erik Schnetter):</p>
<p>A declaration <code>character*8</code> as input argument is really strange. one would only use that if one knows that the length is 8, similar to passing a character array in C (instead of a character pointer).</p>
<p>Usually one would write <code>character*(*)</code>, and the compiler then passes the actual string length as additional (hidden) argument, and uses that length in the callee.</p>
<p>In this case I rather think that the Fortran code is a mistranslation from C, and that the code generating the <code>_CHECKED</code> macro is wrong. <code>dtbetax_p</code> should be declared as <code>CCTK_REAL dtbetax_p(ash0, ash1, ash2)</code> instead. None of the Cactus grid function or parameter passing arguments or declaration use Fortran <code>character</code> variables.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2571/runtime-failure-due-to-useing-character-8'>https://bitbucket.org/einsteintoolkit/tickets/issues/2571/runtime-failure-due-to-useing-character-8</a></p>
</html>