![]() ![]() ![]() ![]() Next: Group Types Up: Cactus Variables Previous: Cactus Variables Contents Data TypeCactus supports integer, real, complex and character variable types, in various different sizes. (Sizes in the following refer to the number of bytes occupied by the a variable of the type).
Normally a thorn should use the default types--CCTK_INT, CCTK_REAL, CCTK_COMPLEX--rather than explicitly setting the size, as this gives maximum portability. Also, the defaults can be changed at configuration time (see Section A2.1.2), and this allows people to compile the code with different precisions to test for roundoff effects, or to run more quickly with a lower accuracy.
|