[Developers] cctk_complex type

Erik Schnetter schnetter at cct.lsu.edu
Mon Jul 10 08:45:13 CDT 2006


On Jul 10, 2006, at 14:49:47, Ian Hawke wrote:

> On Sun, 2006-07-09 at 22:29 -0500, Enrique Pazos wrote:
>
>> By Erik's suggestion I added the CCTK_COMPLEX type to
>> Cactus/lib/sbin/CreateFunctionBindings.pl line 717 and it seems to  
>> work
>> fine now. If that's the solution I guess it would be a good idea  
>> to make
>> that little correction in cactus.
>
> When I coded the aliased function stuff I explicitly disallowed  
> passing
> Complex data types as I have no idea how they are stored in Fortran on
> different architectures. If you're confident that the suggested fix
> works for inter-language calling then go ahead, but I'm paranoid to
> think that it's storing up trouble for later...

Complex variables in Fortran are always stored as two reals, first  
the real, then the imaginary part.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/developers/attachments/20060710/ca8acdf2/attachment.bin 


More information about the Developers mailing list