<div dir="ltr"><div>Hello everybody,<br></div><div><br></div><div>I&#39;m writing a function to set initial conditions, but I need to use an interative method and I need to operate over some arrays (grid functions) that I previously declared in the interface.ccl file.</div><div><br></div><div>This is an example of one of the functions that I&#39;m currently writing.<br></div><div><br></div><div>#include &quot;cctk.h&quot;<br>#include &quot;cctk_Arguments.h&quot;<br>#include &quot;cctk_Parameters.h&quot;<br>#include &quot;ID.h&quot;<br><br>void Initial_Setup(CCTK_ARGUMENTS)<br>{<br><br>  DECLARE_CCTK_ARGUMENTS;<br>  DECLARE_CCTK_PARAMETERS;<br><br>  int index;<br><br>  int i,j,k;<br>  int ierr;<br><br>  for (k=0; k&lt;cctk_lsh[2]; k++)<br>    {<br>      for (j=0; j&lt;cctk_lsh[1]; j++)<br>        {<br>          for (i=0; i&lt;cctk_lsh[0]; i++)<br>            {<br>              index = CCTK_GFINDEX3D(cctkGH,i,j,k);<br><br>              phi[index] = 1.0;<br>              pi [index] = 0.0;<br>            }<br>        }<br>    }<br><br>}</div><div><br></div><div>where pi and phi are the grid functions previously defined in the interface.ccl and the header &quot;ID.h&quot; is where I defined the function Initial_Setup<br></div><div><br></div><div>When I call the function in the main function and compile it I get</div><div><br></div><div>error: type name is not allowed<br>    Initial_Setup(CCTK_ARGUMENTS);</div><div>error: expression must have arithmetic type<br>    Initial_Setup(CCTK_ARGUMENTS);<br></div><div><br></div><div>these errors are the same for the other functions. All these functions are not scheduled but the main function is. What is the problem? <br></div><div><br></div><div>Any help will be apreciated.<br></div><div><br></div><div>Erik<br></div><div><br></div></div>