CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Micael
Forum: FLUENT June 29, 2011, 16:27
Replies: 5
Views: 1,785
Posted By Micael
const means it is not modifiable after...

const means it is not modifiable after declaration. It does not really add something usefull in the present situation.
Forum: FLUENT June 29, 2011, 13:45
Replies: 5
Views: 1,785
Posted By Micael
Yes, all the same. It can be put more compact...

Yes, all the same. It can be put more compact like this:

c=1./2;


Following this, there is an obvious problem here:

const real n = 2/7; /* dimensionless regression coeficient */
Forum: FLUENT June 29, 2011, 11:34
Replies: 5
Views: 1,785
Posted By Micael
It is not about FLUENT nor much about zero, but...

It is not about FLUENT nor much about zero, but about the C language. Lets see an example:


real c;
c = 1/2;


In that case, value of c is zero. Why? Because 1 and 2 are integers. The...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 17:38.