I once tried to run a very early version of the FDS solver with single
precision (4 byte reals or what used to be called REAL*4 in Fortran
77). The problem was the pressure solver. We use a direct (non-
iterative) solver for the Poisson equation, meaning that the accuracy
of the discrete solution is roughly on the order of 10^-12 in the
residuals. For very long calculations, this error builds up, but to
levels that are still very small (like 10^-7, for example). In single
precision, the error build-up can actually cause problems, at least it
did when I tried it many years ago. I haven't tried since, mainly
because we're all moving towards 64 bit (8 byte) arithmetic on 64 bit
OS platforms as a default. I also was told once that running FDS with
single precision might actually cost more in CPU time because of the
need to truncate native 8 byte reals to 4 byte. I suspect that the
GPUs are designed for 4 byte reals.
You have probably figured out that you can reduce the real precision
by changing the definition of "EB" in prec.f90.
> > > Hendrik- Hide quoted text -
>
> - Show quoted text -