|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Thu Jun 23, 2005 4:53 am Post subject: Optimised v Debug problems |
|
|
I have a logical function which is called in a DO WHILE() loop. The arguments are passed correctly when run using code compiled for debugging but the optimised version bails out because the arguments aren't passed correctly
e.g.
Code: |
LOGICAL FUNCTION(arg1,arg2,arg3,arg4)
INTEGER :: arg1,arg2,arg3
CHARACTER*8 :: arg4
IF( arg1==0.AND.arg2==0 )bail out
ENDFUNCTION
|
Testing arg1 and arg2 was to trap something that would be a coding error but I know from the debug executables that it works fine.
Any ideas?
Thanks
Si |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Thu Jun 23, 2005 5:30 am Post subject: Optimised v Debug problems |
|
|
If you are using /OPTIMISE, try leaving it out.
It may run and with no noticable change in run time.
FTN95 applies a significant amount of optimisation by default.
If it is necessary to use /OPTIMISE, post a short and simple program and I will aim to take a look at it.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|