Should casting from ``real`` to ``double precision`` in FORTRAN be affected by the compiler? -
i have fortran code need run on server. noticed results little different between 2 machines. looking it, learned difference rise function return real
value double precision
variable. on locale machine use old compiler (gnu f95 4.1.2) , on remote machine use ifort.
you should expect small difference between same program compiled different compilers. finite precision arithmetic doesn't obey rules expect real numbers. if compilers change order of operations, results may differ slightly.
that said, gfortran 4.1 old point of being obsolete. wouldn't use version of gfortran earlier 4.3. recommend upgrading.
Comments
Post a Comment