[Developers] Re: can I pass array-of-pointer as an aliased-function argument?

Ian Hawke hawke at aei.mpg.de
Mon Apr 11 03:48:17 CDT 2005


On Sun, 10 Apr 2005, Jonathan Thornburg wrote:

> Hi, Ian,
>
> Section B10.5.3 of the Cactus Users' Guide gives the allowable
> argument types for an aliased function as
>  CCTK_INT CCTK_REAL CCTK_STRING CCTK_POINTER CCTK_FPOINTER
>  array of CCTK_INT
>  array of CCTK_REAL
>
> What about arrays of other types?  In particular, are any of
>  array of CCTK_POINTER
>  array of CCTK_FPOINTER
>  array of CCTK_STRING  (this would presumably show up in C as
>                         pointer-to-array-of-pointers-to-strings,
>                         i.e.    const char* const argv[]   )
> allowed?

Arrays of CCTK_POINTERS do work definitely when provided from C (I haven't 
checked when provided from Fortran) and called from either. Arrays of 
FPOINTERs and STRINGs will definitely not work because of Fortran 
limitations.

Ian




More information about the Developers mailing list