Changes between Version 1 and Version 2 of Tutorials/FloatIsDouble

Show
Ignore:
Timestamp:
09/21/08 05:29:25 (5 years ago)
Author:
mturk
Comment:

added example

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/FloatIsDouble

    v1 v2  
    11= Float is double = 
    22 
    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. 
     3In 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. 
    44 
    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. 
     5In 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: 
    66 
    7 I'm sure there's some other stuff. 
     7{{{ 
     8printf("Hello there, your float type value is "FSYM".\n", some_float); 
     9}}} 
    810 
     11where the string literals are concatenated to form the final format string provided to {{{printf}}}.