[Developers] cctk_complex type

Erik Schnetter schnetter at cct.lsu.edu
Mon Jul 10 13:25:44 CDT 2006

On Jul 10, 2006, at 16:45:06, Ian Hawke wrote:

> On Mon, 2006-07-10 at 15:45 +0200, Erik Schnetter wrote:
>> On Jul 10, 2006, at 14:49:47, Ian Hawke wrote:
>>> 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.
> Are these always guaranteed to have the same size as a CCTK_REAL? Or
> could they be some "default" size real?

They are guaranteed to have the same size.  complex consists of two  
real, CCTK_COMPLEX consists of two CCTK_REAL, and CCTK_COMPLEX(2n)  
consists of 2 CCTK_REALn.


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/7c627bbf/attachment.bin 

More information about the Developers mailing list