Changes between Version 1 and Version 2 of Tutorials/FloatIsDouble
- Timestamp:
- 09/21/08 05:29:25 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/FloatIsDouble
v1 v2 1 1 = Float is double = 2 2 3 In order to dynamically change the compute precision, enzo uses a macro that promotes single precision floats to double precision floats. Several things are altered this way . These can be altered with make commands on the command line.3 In order to dynamically change the compute precision, enzo uses a macro that promotes single precision floats to double precision floats. Several things are altered this way, and this behavior can be governed with the makefile configuration system. 4 4 5 In order to keep the {{{printf}}} family of commands happy, Enzo provides several macros. {{{ISYM}}} and {{{FSYM}}} are the general int and float types. 5 In order to keep the {{{printf}}} family of commands happy, Enzo provides several macros. {{{ISYM}}} and {{{FSYM}}} are the general int and float types. Their usage would be along the following lines: 6 6 7 I'm sure there's some other stuff. 7 {{{ 8 printf("Hello there, your float type value is "FSYM".\n", some_float); 9 }}} 8 10 11 where the string literals are concatenated to form the final format string provided to {{{printf}}}.
