CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   c language memory (

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?



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 01:01.