CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Variable types (https://www.cfd-online.com/Forums/fluent-udf/82266-variable-types.html)

orland November 22, 2010 05:53

Variable types
 
The Fluent udf guide uses the data type "real" (real sum_diss=0;).
this does not appear to be proper C syntax.
Does the Fluent compiler recognize it as a C type (instead of float, double, int, etc.)?

KristianEtienne November 22, 2010 11:12

Hi,

The datatype "real" is interpreted as a "float" when using the single precision solver and "double" when using the double precision solver.

Cheers!

orland November 22, 2010 11:23

thanks a lot!!!


All times are GMT -4. The time now is 01:56.