CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   c language memory (http://www.cfd-online.com/Forums/main/7647-c-language-memory.html)

Junseok Kim June 7, 2004 14:40

c language memory
 
There are two types, float and double.

Is it enough to use float for CFD calculation? And does it really save memory, especially speed of the calculation?

Thanks

Junseok

Jarmo Monttinen June 7, 2004 15:48

Re: c language memory
 
Depends on the problem. I've had success with float for steady-state runs, for time-dependent ones I would use double.

If I want to do stability analysis on the results, then again double...

It does save memory, but how much, that depends on the code, environment, problem size and so on... not really my specialty.

-- Jarmo


All times are GMT -4. The time now is 20:52.