rna2009
Mechanical
- Oct 28, 2009
- 1
Hi,
very new to Fortran but have written the code attached. However it doesn't seem to run with double precision unless I use the old style method of writing 0d0 and implicit double precision at the top of the subroutines. I have tried to use a module and declare everything in it to be double precision but this doesn't work.
When it runs with double precision the final answer is 2.828427124751.
Have I made some really obvious error or why does this not work? I don't want to use the old Fortran methods so any help is really appreciated,
Rich
very new to Fortran but have written the code attached. However it doesn't seem to run with double precision unless I use the old style method of writing 0d0 and implicit double precision at the top of the subroutines. I have tried to use a module and declare everything in it to be double precision but this doesn't work.
When it runs with double precision the final answer is 2.828427124751.
Have I made some really obvious error or why does this not work? I don't want to use the old Fortran methods so any help is really appreciated,
Rich