forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Optimised v Debug problems

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Jun 23, 2005 4:53 am    Post subject: Optimised v Debug problems Reply with quote

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: 7916
Location: Salford, UK

PostPosted: Thu Jun 23, 2005 5:30 am    Post subject: Optimised v Debug problems Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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